This assignment was submitted to 'Compiler Construction' subject, CE KMITL
Original flex file by Jutta Degener, 2004 (http://www.quut.com/c/ANSI-C-grammar-l-1995.html)
- Siridej Phanathanate
- Isara Naranirattisai
Both contributor contributed equally to this work
$ sudo apt-get install flex
$ sudo apt-get install gcc
- flex foobar.flex and you'll get lex.yy.c
$ flex foobar.flex
- Compile lex.yy.c using gcc
$ gcc lex.yy.c -lfl
- then run 'a.out' with test.c as input
$ ./a.out < test.c
- Original flex file (original-foobar.flex) by Jutta Degener, 2004 (http://www.quut.com/c/ANSI-C-grammar-l-1995.html)
- test.c by Adekovsky_CE