Closed mingodad closed 11 months ago
https://github.com/thutt/lrstar/blob/linux-port/src/lrstar/PG.grm.grammar.txt
That file is a log file that is output by lrstar. The actual grammar file is PG.grm. However, it's not a YACC-style grammer, so you may not have luck using that file either.
Paul can provide more guidance. You can find his direct email on his project website listed in the README.md file. I will also point him to this issue.
Thank you !
I'm trying to add the
lrstar
grammar to https://mingodad.github.io/parsertl-playground/playground/ anYacc/Lex
compatible online editor/tester using https://github.com/thutt/lrstar/blob/linux-port/src/lrstar/PG.grm.grammar.txt but it doesn't seem to be valid to parser https://github.com/thutt/lrstar/blob/linux-port/src/lrstar/PG.grm .It seems that https://github.com/thutt/lrstar/blob/linux-port/src/lrstar/PG.grm uses
->
everywhere instead only for theGOALSYMBOL
, because other grammars like https://github.com/thutt/lrstar/blob/linux-port/grammars/delphi/delphi.grm does use->
forGOALSYMBOL
here https://github.com/thutt/lrstar/blob/29433f7fdbd4642168d9920f08d1365cff9757f9/grammars/delphi/delphi.grm#L6 .I'm interested in cooperate with this project.
Here is my current transalation: