ack/first/yacc.pm

19 lines
310 B
Perl
Raw Normal View History

2006-07-20 23:24:28 +00:00
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%"
}
}