1
0

separate interpreter and compiler

This commit is contained in:
2024-12-02 13:57:32 +03:00
parent 8030670a51
commit e5b63d5e2d
27 changed files with 214 additions and 92 deletions

35
run_all.sh Executable file
View File

@@ -0,0 +1,35 @@
mkdir -p ./test/lex
cargo run -r -- lex ./test/in.txt ./test/lex/tokens.txt ./test/lex/symbols.txt
mkdir -p ./test/syn
cargo run -r -- syn ./test/in.txt ./test/syn/tree.txt
mkdir -p ./test/sem/none
cargo run -r -- sem ./test/in.txt ./test/sem/none/tree.txt
mkdir -p ./test/sem/o1
cargo run -r -- sem -o o1 ./test/in.txt ./test/sem/o1/tree.txt
mkdir -p ./test/sem/o2
cargo run -r -- sem -o o2 ./test/in.txt ./test/sem/o2/tree.txt
mkdir -p ./test/sem/o3
cargo run -r -- sem -o o3 ./test/in.txt ./test/sem/o3/tree.txt
mkdir -p ./test/gen/ir
cargo run -r -- gen i ./test/in.txt ./test/gen/ir/result.txt ./test/gen/ir/symbols.txt
mkdir -p ./test/gen/p
cargo run -r -- gen p ./test/in.txt ./test/gen/p/result.txt ./test/gen/p/symbols.txt
mkdir -p ./test/gen/ir-o
cargo run -r -- gen i -o o2 ./test/in.txt ./test/gen/ir-o/result.txt ./test/gen/ir-o/symbols.txt
mkdir -p ./test/gen/p-o
cargo run -r -- gen p -o o2 ./test/in.txt ./test/gen/p-o/result.txt ./test/gen/p-o/symbols.txt
mkdir -p ./test/com
cargo run -r -- com ./test/in.txt ./test/com/result.bin
mkdir -p ./test/com-o
cargo run -r -- com -o o2 ./test/in.txt ./test/com-o/result.bin