Baby steps towards building a platform --- make the assembler work.

Add ackbuilder support for C preprocessor files and yacc.
This commit is contained in:
David Given
2016-07-24 00:50:02 +02:00
parent 2770a83837
commit bff5c4019c
8 changed files with 214 additions and 5 deletions

23
first/yacc.lua Normal file
View File

@@ -0,0 +1,23 @@
definerule("yacc",
{
srcs = { type="targets" },
commands = {
type="strings",
default={
"yacc -t -b %{dir}/y -d %{ins}"
}
},
},
function (e)
return normalrule {
name = e.name,
cwd = e.cwd,
ins = e.srcs,
outleaves = { "y.tab.c", "y.tab.h" },
label = e.label,
commands = e.commands,
}
end
)