soasme / PeppaPEG

PEG Parser in ANSI C
https://soasme.com/PeppaPEG
MIT License
55 stars 7 forks source link

lua: define operator precedence in Lua. #137

Open soasme opened 3 years ago

soasme commented 3 years ago

I'm not going to merge this PR anytime soon since this approach will increase the parse time significantly. It took nearly 20s even if the cli is compiled with -O2 option.

54/54 Test #53: lua-5.4.3/*.lua ..............................   Passed   19.89 sec

A better approach may be introducing precedence climbing at Peppa PEG specification level.