ack/first/yacc.pm
2006-07-20 23:24:28 +00:00

19 lines
310 B
Raku

yacc = simple {
class = "yacc",
outputs = {"%U%/%I%.c"},
command = {
"yacc -t -b %{return posix.dirname(self.out[1])}%/y -d %in%",
"mv %{return posix.dirname(self.out[1])}%/y.tab.c %out%"
}
}
flex = simple {
class = "flex",
outputs = {"%U%/%I%.c"},
command = {
"flex -s -t %in% > %out%"
}
}