Jump to content

Recommended Posts

link

It's an interpreter for a programming language that I made. And I wanted to make sure it's working right. There is documentation on the site, but here's some code and the results I expect.

Hello world program:

homeLessGuy.bob.say(Hello world!)

Results: Hello world

 

make a new session value

homeLessGuy.bob.money=foo;
informant.vars.session.sessionValue(bar:homeLessGuy.bob.money);

Results:

 

display the value of a session value:

homeLessGuy.bob.sayStat(informant.vars.session.bar);

Results: foo

Link to comment
https://forums.phpfreaks.com/topic/40276-programming-language-interpreter/
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.