Skip to content

How should I build a cpp project with yacc rules? #5101

Closed Answered by star-hengxing
Siudya asked this question in Q&A
Discussion options

You must be logged in to vote

local extension = path.extension(sourcefile_yacc)
local sourcefile_cx = path.join(target:autogendir(), "rules", "yacc_yacc", path.basename(sourcefile_yacc) .. ".tab" .. (extension == ".yy" and ".cpp" or ".c"))

Rename .y -> .yy

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Siudya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants