After
$ make
run
$ ./yapl <source_code>
- Int, String and Boolean types
- Literals, arithmetics, comparisons
- Variables and assignments
- Print function
- While, if
- Recursive functions
- For loop
- Static binding, local and global variables
- Error handling pointing positions
- Both void and non-void functions
- Nested functions
- Lists
- Break, continue
- Higher-order, anonymous functions, closures
Both valid and invalid example source codes can be found in examples/good
and examples/bad
directories.
In the current version, indentation blocks are partially supported (needs fix on grammar layout), however curly bracket blocks are fully supported.