sunjay / brain

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

Support Paths #59

Open sunjay opened 7 years ago

sunjay commented 7 years ago

This feature is only really useful once #37 is implemented.

Path: foo::bar::Foo::bar Identifier: foo

In the AST, define a Path struct and make Identifier a type alias for String. Make sure the correct one is being used in the right places. This separation is needed because sometimes a path is not a valid identifier.