diff options
Diffstat (limited to 'test-chill/makeparser.py')
-rw-r--r-- | test-chill/makeparser.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-chill/makeparser.py b/test-chill/makeparser.py new file mode 100644 index 0000000..5e41489 --- /dev/null +++ b/test-chill/makeparser.py @@ -0,0 +1,9 @@ +import pylang.parser +import pickle + +if __name__ == '__main__': + gstream = open('testchill/cpp_validate/grammar.txt', 'r') + env = dict() + exec('from testchill._cpp_validate_env import *', None, env) + parser = pylang.parser.generate(gstream, env) + pickle.dump(parser, open('testchill/cpp_validate/parser.pickle', 'wb'), 2) |