Skip to content

The objective of this practical is to learn the general principles involved in constructing source code parsers. This will be done using JavaCC (the Java Compiler Compiler – javacc.java.net). JavaCC is complex, and this prac will not cover all aspects of it in depth.

Notifications You must be signed in to change notification settings

benAsiri/JavaCC_Worksheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVACC - Worksheet

The objective of this practical is to learn the general principles involved in constructing source code parsers. This will be done using JavaCC (the Java Compiler Compiler – javacc.java.net). JavaCC is complex, and this prac will not cover all aspects of it indepth

Installation

  1. First You have to Install https://javacc.org/
  2. Clone this Repo
  3. I have complete the All the Prac untill to Last Question
  4. Access the Prac from Here https://goo.gl/kf2xen

Usage

Use this for Reference Pourposes Only!!! Empty Class is my sample output class that I am going to input to parser.

How to Use ?

  1. To convert the grammar into Java source code, run JavaCC as follows: [user@pc]$ javacc SimpleJavaParser.jj

  2. The generated parser then needs to be compiled: [user@pc]$ javac SimpleJavaParser.java

  3. Run the compiled parser as follows: [user@pc]$ java SimpleJavaParser < Example.java

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

If you are Doing Curtin. Please do not thank me. Thank for all who helped me.

License

MIT License

About

The objective of this practical is to learn the general principles involved in constructing source code parsers. This will be done using JavaCC (the Java Compiler Compiler – javacc.java.net). JavaCC is complex, and this prac will not cover all aspects of it in depth.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages