sunjay / brain

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

Assignment to Fields #58

Open sunjay opened 7 years ago

sunjay commented 7 years ago

Currently, the AST only supports assignment to plain identifiers. The grammar should support assignment to fields (at an arbitrary depth).

// currently supported
foo = 2;

// wanted
bar.foo.spam = 4;
bar.foo.spam.car = 4;

Note that this is just the grammar to support this. The actual implementation will be when #39 is completed.