🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Tangent: Further tokens

Published April 19, 2008
Advertisement
Progress on Tangent continues slowly. I added support for member access and parenthetical expressions to the code that takes a series of tokens and builds a sane abstract syntax tree.

(where string a,b,c and (string,string) tupleab are defined)
c = a + b;c = string.concat tupleab;c = string.concat(a,b);


All now effectively generate the same AST. On the list is tying that token code to the parser, so I can go straight from source to AST and generating useful stuff from the AST's. And sometime I'm going to have to rework the type parameterization stuff. But I must focus on getting something working. Actually concat-ing a string or adding some ints and dumping to console. No compilation needed; a hacky interpreter will be fine. Even starting with only the first version to avoid instance methods for the time being will be fine.
Previous Entry Tangent: Parsing
Next Entry Tangent: Generics 1
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement