4546dd5f22
instructions can be turned on and off based on their parameters. New lexer using a lexer. Now quite a lot of the way towards being a real instruction selector.
26 lines
293 B
Lua
26 lines
293 B
Lua
include("first/yacc.lua")
|
|
|
|
flex {
|
|
name = "flex",
|
|
srcs = { "./*.l" },
|
|
}
|
|
|
|
yacc {
|
|
name = "yacc",
|
|
srcs = { "./*.y" },
|
|
}
|
|
|
|
cprogram {
|
|
name = "mcgg",
|
|
srcs = {
|
|
"./*.c",
|
|
matching(filenamesof("+flex"), "%.c$"),
|
|
matching(filenamesof("+yacc"), "%.c$")
|
|
},
|
|
deps = {
|
|
"./*.h",
|
|
"+yacc"
|
|
}
|
|
}
|
|
|