Small language I built from scratch — lexer, parser, and interpreter in Java.
mvn exec:java -Dexec.args="examples/example1.opl"if something looks off, clean build first:
mvn clean compile exec:java -Dexec.args="examples/example1.opl"mvn test- variables, strings, numbers, nil
- arithmetic, comparison, and logical operators
- short-circuit evaluation (
and,or) if/else,while,for- block scoping
print- functions and closures
returnstatements
- classes and structs
- arrays
- string interpolation