Skip to content

youssefmagdy1/compiler_project

Repository files navigation

Compilers project

Task 1:

  1. Use ANTLR Java grammar.
  2. Test the grammar on a simple Java program.
  3. Use the parser to parse the program and generate the parse tree.

an example of a parser tree for simple program

simple program parser Tree

Task 2:

  1. Inject Java code by using ANTLR and take the Java Code and output the same Java code after injection.
  2. Run the modified Java file to check which code is visited

Program Before Injection

simpleJava

Program After Injection

simpleJavaAfterInjection

Task 3:

  1. Generate an HTML From the modified Java file that's indicat which block is visited or not.
  2. Documentation Using Doxygen.
  3. Complete the pipeline.
  4. branch checking as Bounce

Program that's needed an indication which block is visited

simpleJavaAfterInjection

HTML file output that's show the visited and not visited blocks

htmlOutput

Testing WHILE and DO WHILE

bounce

Members:

  1. Yossef Mohamed AbdelMohsen
  2. Ahmed Saied
  3. Yossef Magdy
  4. Yasser Elmenshawey

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •