-
在项目里需要根据一些文本文件,通过python生成头文件和源文件,然后在项目里使用。
依赖的文本文件 token.txt, python文件 gencode.py, 使用python gencode.py token.txt 生成token.h, token.cpp, 需要怎么实现呢? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Apr 2, 2023
Replies: 1 comment 3 replies
-
lex / yacc 里面就最基础的 demo 了,直接参考里面的 https://github.com/xmake-io/xmake/blob/master/xmake/rules/lex_yacc/lex/xmake.lua |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Frandy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lex / yacc 里面就最基础的 demo 了,直接参考里面的 https://github.com/xmake-io/xmake/blob/master/xmake/rules/lex_yacc/lex/xmake.lua