Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 522 Bytes

readme.md

File metadata and controls

13 lines (8 loc) · 522 Bytes

Magix

Language creation, following the amazing www.craftinginterpreters.com course.

Compile and run

  • Compile your program: javac -d build magix/Magix.java
  • Run it with an input file: java -cp build magix/Magix "testFiles/InterpreterTest.magix"
  • Run it in REPL: java -cp build magix/Magix

Edit the language

  • You can generate expressions (magix/Expr.java) with tool/GenerateAst.java, run it by typing in your terminal: java tool/GenerateAst.java "./magix"