Skip to content

rishit5/JavaMiniParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites - Flex and Bison installed prior to running.

Type in the following commands in the linux terminal for within directory of the shell script ‘javacompl.sh’ and type the following -

To Run The Parser as it is : chmod 777 javacompl.sh ./javacompl.sh

To recompile from scratch and run after some changes made to the program -

Step I ) In directory Parser/ bison -d a.y gcc lex.yy.c a.tab.c -o parser ./parser

Note: For the input file ‘first.java’ , change the path to your own in the a.y file.

Step II ) In directory Symtable/ flex tokgen.l gcc lex.yy.c -o symtable ./symtable

Note: For the input file ‘first.java’ , change the path to your own in the tokgen.l file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •