Towards CUE parser via flex/bison.

This commit is contained in:
rocky
2003-05-11 03:29:25 +00:00
parent ffa4104620
commit 9a7cf3a4ee
8 changed files with 498 additions and 0 deletions

25
parse/Makefile Normal file
View File

@@ -0,0 +1,25 @@
all: cueparser cuelexer
lex.cue.c: cue.L cue.tab.h
flex -Pcue cue.L
lex.cuelex.c: cue.L cue.tab.h
flex -Pcuelex cue.L
lex.cue.o: lex.cue.c
gcc -g -Wall -c lex.cue.c
lex.cuelex.o: lex.cuelex.c
gcc -g -DSTANDALONE -Wall -c lex.cuelex.c
cue.tab.c: cue.y
bison -p cue -d cue.y
cue.tab.o: cue.tab.c cue.tab.h
gcc -g -Wall -DSTANDALONE -c cue.tab.c
cueparser: lex.cue.o cue.tab.o
gcc -g lex.cue.o cue.tab.o -lfl -o cueparser
cuelexer: lex.cuelex.o
gcc -g lex.cuelex.o -lfl -o cuelexer