🎉 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: Milestone 2

Published June 03, 2008
Advertisement
Milestone 1: ~3 months
Milestone 2: ~3 days

(and another 4 weeks making things work beyond my one arbitrary test and after further use reminds me that I am an idiot)

Tangent now parses and interprets literals:

// a = "moo." above// print defined in journal entries below{    print "bleat. " 3.14 " " 42 " " 'X' " " a;}


nicely prints

bleat. 3.14 42 X moo.


Though the use of space literals makes that largely horrific looking.

Anyways:

-true/false/null work, though actual bool objects not yet implemented.
-Other literals contain values, but only 'ToString()' implemented for them yet.
-char literals work.
-int literals work so far as int.TryParse does; that is... u/l suffixes fail.
-real literals work so far as decimal.TryParse does; that is... d/m/f suffixes and exponent notation fail.
-string and C#-style verbatim string literals work, though escape sequences are a little buggy at the moment.

I'll probably flesh out some of the basic types (simple operators for int/real/string) and then it's on to local variable declarations.
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