3 # This script runs Bison and/or Flex to regenerate the files
4 # parser.c and parser.h from parser.y and scanner.c from scanner.l.
5 # The commands are run only if the generated files are older than the
6 # Bison/Flex input files.
8 [[ parser.y
-nt parser.c
]] && bison
-d -t -o parser.c parser.y
9 [[ scanner.l
-nt scanner.c
]] && flex
-o scanner.c scanner.l