Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic typed language example using ANTLR

I'm looking for some ANTLR v3 examples, I tried googling a bit but I found certain things which didn't fit my requirments. I found the Mantra project, but it's statically typed and is 'too' big for me at this moment, then I found 'pie' as interpreter, which is dynamically typed, which what I want, but it uses a syntax-directed interpreter.

I'm looking for a pretty small language which is dynamically typed and uses AST's if possible. It doesn't need to be advanced, if it would have classes I would already be very happy.

I don't really care about the target language, as I already have experience with most of the target languages of ANTLR v3, and code isn't that hard to read much.

Thanks,

William van Doorn

like image 639
wvd Avatar asked Feb 26 '26 08:02

wvd


1 Answers

Physicalc sounds like it may be what you're after.

EDIT - as per comments: Here is my work-in-progress toy language.

like image 81
etheros Avatar answered Feb 28 '26 09:02

etheros



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!