Skip to content

Lex and yacc implementation of a basic java parser.

Notifications You must be signed in to change notification settings

shashwat-r/MiniJavaParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mini-java-parser

This java parser implements basic functionality of the language, like

  • if-else statements
  • switch case
  • for-loop
  • while loop
  • try-catch-throw
  • classes

To compile and run the files on Ubuntu, you need to install flex and bison, and then run the following commands

yacc -d minijava.y
flex minijava.l
gcc lex.yy.c y.tab.c y.tab.h -o minijava
./minijava < test.txt

This is just a parser and not a semantic analyzer.

About

Lex and yacc implementation of a basic java parser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published