tinwe6 / loxi

loxi - a Lox interpreter
MIT License
33 stars 3 forks source link

Examples #3

Closed glouw closed 4 years ago

glouw commented 6 years ago

Well done.

Do you have any examples on how Lox is used? I'm keen on its syntax.

tinwe6 commented 4 years ago

Thanks glouw. The Lox language is fully described here

If you want to read a Lox program, @benhoyt wrote a Lox interpreter in... Lox, LoxLox. It's the only non-trivial program written in Lox that I know of!

You can also look at the Lox snippets that are used to test the interpreter: (https://github.com/munificent/craftinginterpreters/tree/master/test)

Hope this helps!