Commit cd6c7994 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #413 from undingen/switchToPypa

Use the pypa parser as the default parser.
parents 97d43471 f3c3dcb4
Subproject commit 2ce3f0ef83f6d3d4bdd1ab841e2ca4c3417d93a4 Subproject commit 0a2bbff17a4f8e0270c64423004b5613457e59db
...@@ -37,7 +37,7 @@ bool DUMPJIT = false; ...@@ -37,7 +37,7 @@ bool DUMPJIT = false;
bool TRAP = false; bool TRAP = false;
bool USE_STRIPPED_STDLIB = true; // always true bool USE_STRIPPED_STDLIB = true; // always true
bool ENABLE_INTERPRETER = true; bool ENABLE_INTERPRETER = true;
bool ENABLE_PYPA_PARSER = false; bool ENABLE_PYPA_PARSER = true;
bool USE_REGALLOC_BASIC = true; bool USE_REGALLOC_BASIC = true;
int OSR_THRESHOLD_INTERPRETER = 200; int OSR_THRESHOLD_INTERPRETER = 200;
......
...@@ -109,7 +109,7 @@ static int main(int argc, char** argv) { ...@@ -109,7 +109,7 @@ static int main(int argc, char** argv) {
} else if (code == 'b') { } else if (code == 'b') {
USE_REGALLOC_BASIC = false; USE_REGALLOC_BASIC = false;
} else if (code == 'x') { } else if (code == 'x') {
ENABLE_PYPA_PARSER = true; ENABLE_PYPA_PARSER = false;
} else if (code == 'c') { } else if (code == 'c') {
command = optarg; command = optarg;
// no more option parsing; the rest of our arguments go into sys.argv. // no more option parsing; the rest of our arguments go into sys.argv.
......
...@@ -15,7 +15,7 @@ int main(int argc, char const ** argv) { ...@@ -15,7 +15,7 @@ int main(int argc, char const ** argv) {
initCodegen(); initCodegen();
if(argc > 2 && argv[1][0] == '-' && argv[1][1] == 'x') { if(argc > 2 && argv[1][0] == '-' && argv[1][1] == 'x') {
ENABLE_PYPA_PARSER = true; ENABLE_PYPA_PARSER = false;
} }
std::string fn = argv[1 + int(argc > 2)]; std::string fn = argv[1 + int(argc > 2)];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment