项目作者: federicobond

项目描述 :
A simple imperative language for the JVM
高级语言: Java
项目地址: git://github.com/federicobond/primer.git
创建时间: 2014-09-26T23:19:28Z
项目社区:https://github.com/federicobond/primer

开源协议:

下载


Primer Build Status

primer

A programming language.

To build the project, run:

  1. mvn package

To execute a file, run:

  1. bin/primer run script.primer

To compile a file to a Java class, run:

  1. bin/primer compile script.primer

You can also add a shebang like this to make a file executable:

  1. #!/path/to/bin/primer run

Debugging commands

To visualize the AST of a file, run:

  1. bin/primer ast script.primer

To visualize the list of tokens of a file, run:

  1. bin/primer tokens script.primer

To see a human-readable version of the generated bytecode, run:

  1. bin/primer bytecode script.primer

(remember that you will need to add the primer runtime to your classpath to
execute a compiled class)