A simple imperative language for the JVM
A programming language.
To build the project, run:
mvn package
To execute a file, run:
bin/primer run script.primer
To compile a file to a Java class, run:
bin/primer compile script.primer
You can also add a shebang like this to make a file executable:
#!/path/to/bin/primer run
To visualize the AST of a file, run:
bin/primer ast script.primer
To visualize the list of tokens of a file, run:
bin/primer tokens script.primer
To see a human-readable version of the generated bytecode, run:
bin/primer bytecode script.primer
(remember that you will need to add the primer runtime to your classpath to
execute a compiled class)