Automatically generate Expr.java using GenerateAst

This commit is contained in:
Tom Willemse 2020-10-28 23:03:25 -07:00
parent 2e15e8bab8
commit f6cdbabe1c

View file

@ -5,6 +5,10 @@ include(UseJava)
project(Lox NONE) project(Lox NONE)
add_custom_command(OUTPUT com/craftinginterpreters/lox/Expr.java
COMMAND java -jar GenerateAst.jar com/craftinginterpreters/lox
DEPENDS GenerateAst)
add_jar(Lox add_jar(Lox
com/craftinginterpreters/lox/Lox.java com/craftinginterpreters/lox/Lox.java
com/craftinginterpreters/lox/TokenType.java com/craftinginterpreters/lox/TokenType.java