Parser for a programming language that targets GIS programming for a Programming Languages Project in Hacettepe University.
To install flex and yacc in Ubuntu:
sudo apt-get install flex
sudo apt-get install bison
-
First Compile yacc program
yacc -d gipsy.yIt will generate 3 files- y.tab.c , y.tab.h and y.output
-
Compile lex file
lex gipsy.lIt will generate lex.yy.c file
-
Run the following commands
- gcc -o gipsy_parser y.tab.c lex.yy.c -lfl -lm
- ./gipsy_parser < inp.txt
-
Or you can just use make that includes 1, 2 and 3.1, then run 3.2
make ./gipsy_parser < inp.txt