upd: further config environment
This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -6,7 +6,7 @@
|
|||||||
"name": "Debug ANTLR4 grammar",
|
"name": "Debug ANTLR4 grammar",
|
||||||
"type": "antlr-debug",
|
"type": "antlr-debug",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"input": "./a.txt", // 输入文件(即你要运行的 Python 代码文件)
|
"input": "/tmp/prog.py", // 输入文件(即你要运行的 Python 代码文件)
|
||||||
"grammar": "./resources/Python3Parser.g4", // 语法文件
|
"grammar": "./resources/Python3Parser.g4", // 语法文件
|
||||||
"startRule": "file_input", // 语法入口规则,我们的公式语法入口规则是 file_input
|
"startRule": "file_input", // 语法入口规则,我们的公式语法入口规则是 file_input
|
||||||
"printParseTree": true, // 是否 打印/可视化 parse tree
|
"printParseTree": true, // 是否 打印/可视化 parse tree
|
||||||
|
@ -29,3 +29,5 @@ target_link_libraries(code int2048)
|
|||||||
target_link_libraries(code PyAntlr)
|
target_link_libraries(code PyAntlr)
|
||||||
target_link_libraries(code antlr4-runtime)
|
target_link_libraries(code antlr4-runtime)
|
||||||
### YOU CAN"T MODIFY THE CODE ABOVE
|
### YOU CAN"T MODIFY THE CODE ABOVE
|
||||||
|
|
||||||
|
include(test/ctest_config)
|
35
test/ctest_config
Normal file
35
test/ctest_config
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
enable_testing()
|
||||||
|
add_test(NAME /1/0 COMMAND test/test-core -l /1/0)
|
||||||
|
add_test(NAME /1/1 COMMAND test/test-core -l /1/1)
|
||||||
|
add_test(NAME /1/2 COMMAND test/test-core -l /1/2)
|
||||||
|
add_test(NAME /1/3 COMMAND test/test-core -l /1/3)
|
||||||
|
add_test(NAME /1/4 COMMAND test/test-core -l /1/4)
|
||||||
|
add_test(NAME /1/5 COMMAND test/test-core -l /1/5)
|
||||||
|
add_test(NAME /1/6 COMMAND test/test-core -l /1/6)
|
||||||
|
add_test(NAME /1/7 COMMAND test/test-core -l /1/7)
|
||||||
|
add_test(NAME /1/8 COMMAND test/test-core -l /1/8)
|
||||||
|
add_test(NAME /1/9 COMMAND test/test-core -l /1/9)
|
||||||
|
add_test(NAME /1/10 COMMAND test/test-core -l /1/10)
|
||||||
|
add_test(NAME /1/11 COMMAND test/test-core -l /1/11)
|
||||||
|
add_test(NAME /1/12 COMMAND test/test-core -l /1/12)
|
||||||
|
add_test(NAME /1/13 COMMAND test/test-core -l /1/13)
|
||||||
|
add_test(NAME /2/0 COMMAND test/test-core -l /2/0)
|
||||||
|
add_test(NAME /2/1 COMMAND test/test-core -l /2/1)
|
||||||
|
add_test(NAME /2/2 COMMAND test/test-core -l /2/2)
|
||||||
|
add_test(NAME /2/3 COMMAND test/test-core -l /2/3)
|
||||||
|
add_test(NAME /2/4 COMMAND test/test-core -l /2/4)
|
||||||
|
add_test(NAME /2/5 COMMAND test/test-core -l /2/5)
|
||||||
|
add_test(NAME /2/6 COMMAND test/test-core -l /2/6)
|
||||||
|
add_test(NAME /2/7 COMMAND test/test-core -l /2/7)
|
||||||
|
add_test(NAME /2/8 COMMAND test/test-core -l /2/8)
|
||||||
|
add_test(NAME /2/9 COMMAND test/test-core -l /2/9)
|
||||||
|
add_test(NAME /2/10 COMMAND test/test-core -l /2/10)
|
||||||
|
add_test(NAME /2/11 COMMAND test/test-core -l /2/11)
|
||||||
|
add_test(NAME /2/12 COMMAND test/test-core -l /2/12)
|
||||||
|
add_test(NAME /2/13 COMMAND test/test-core -l /2/13)
|
||||||
|
add_test(NAME /2/14 COMMAND test/test-core -l /2/14)
|
||||||
|
add_test(NAME /2/15 COMMAND test/test-core -l /2/15)
|
||||||
|
add_test(NAME /2/16 COMMAND test/test-core -l /2/16)
|
||||||
|
add_test(NAME /2/17 COMMAND test/test-core -l /2/17)
|
||||||
|
add_test(NAME /2/18 COMMAND test/test-core -l /2/18)
|
||||||
|
add_test(NAME /2/19 COMMAND test/test-core -l /2/19)
|
Reference in New Issue
Block a user