RustPython / Parser

MIT License
66 stars 24 forks source link

How do I regenerate the parser? #113

Closed Ki11erRabbit closed 5 months ago

Ki11erRabbit commented 5 months ago

I am using this library for a research project that requires me to modify the grammar of Python. I have been stuck trying to regenerate the parser since I am not sure what is means to "Run lalrpop src/python.lalrpop."

Any help is appreciated. Thank you.

youknowone commented 5 months ago

The source file is here: https://github.com/RustPython/Parser/blob/main/parser/src/python.lalrpop You can install lalrpop the compiler from cargo. (cargo install lalrpop)

Ki11erRabbit commented 5 months ago

Thank you for your help.