Skip to content

tarikisildar/GiPSy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GiPSy

Parser for a programming language that targets GIS programming for a Programming Languages Project in Hacettepe University.

REQUIREMENTS & INSTALLATION


To install flex and yacc in Ubuntu:

sudo apt-get install flex
sudo apt-get install bison
  1. First Compile yacc program

     yacc -d gipsy.y
    

    It will generate 3 files- y.tab.c , y.tab.h and y.output

  2. Compile lex file

     lex gipsy.l
    

    It will generate lex.yy.c file

  3. 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
    

About

A new language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors