Auto-detect JSON front-end

This commit is contained in:
Clifford Wolf 2017-08-09 13:28:52 +02:00
parent c4a7958f70
commit 159701962a
1 changed files with 2 additions and 0 deletions

View File

@ -792,6 +792,8 @@ void run_frontend(std::string filename, std::string command, std::string *backen
command = "vhdl";
else if (filename.size() > 4 && filename.substr(filename.size()-5) == ".blif")
command = "blif";
else if (filename.size() > 4 && filename.substr(filename.size()-5) == ".json")
command = "json";
else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".il")
command = "ilang";
else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".ys")