Skip to content

federicobond/primer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primer Build Status

primer

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

Debugging commands

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)

About

A simple imperative language for the JVM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages