sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language
MIT License
167 stars 12 forks source link

Arbitrary Field Access #57

Open sunjay opened 7 years ago

sunjay commented 7 years ago

In order to implement arbitrary field access, you technically need to apply left-recursion which is notoriously hard in a PEG grammar. To make things easier, this was left out of the initial parser code.

Implementation Notes

Do something like what was done to support conditionals: parse everything in sequence and then nest everything together in one step.