ashn-dot-dev / lumpy

A small scripting language with value semantics
BSD Zero Clause License
3 stars 0 forks source link

Grammar for lumpy #1

Open sDos280 opened 3 weeks ago

sDos280 commented 3 weeks ago

Hi ashn,

Is there any plan to create a grammar struct of the lumpy language? Like you did for sunder with the GRAMMAR file?

ashn-dot-dev commented 3 weeks ago

Hello @sDos280 👋

Eventually I will create a GRAMMAR file, similar to what I did with Sunder. Currently, I am doing a lot of experimenting with the language and interpreter, so documenting the exact grammar has not been a very high priority. Thankfully the Parser.parse_* functions are relatively straightforward, and should translate cleanly into an LL(1) grammar once I get around to writing the grammar out.