A flex grammar to recognize a Python-like language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
167 B

prog: lex.yy.o
gcc lex.yy.o -o prog
lex.yy.o: lex.yy.c
gcc -c -o lex.yy.o lex.yy.c
flex python.flx
.PHONY: clean
rm -f prog lex.yy.o lex.yy.c