Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 426 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 426 Bytes

this code is test for bison parse dot language

docker

依赖的docker hejingzhilian/bison_practise

cd docker && sh start_bison.sh

docker exec -it bison_docker /bin/bash

第一步 生成语法解析代码

生成Scanner.cpp

sh gen_syntax.sh 

第三步 生成bin

bazel build //:main

单测

单测可以参考如下代码

bazel test --test_output=all //:hello_test