GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brilacasck/java-language-parser: A simple compiler for parsing java codes and get syntax errors with CYK algorithm for context free grammars (CFG)

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
nbproject
nbproject
 
 
src/tla_project/v/pkg2/pkg2
src/tla_project/v/pkg2/pkg2
 
 
1.txt
1.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
img1.png
img1.png
 
 
img2.png
img2.png
 
 
manifest.mf
manifest.mf
 
 

Repository files navigation

java-language-parser

A simple compiler for parsing java codes and get syntax errors with CYK algorithm for context free grammars (CFG)

Documentations

This project were created for a course project. course of Theory of Language and Automaton.

This is a very simple parser for Java Language resolves by CYK Algorithm for CFGs (Context-Free-Grammars) or better to say, CNFs

This consists of two parsing sections:

  1. Syntax validation : Success or Wrong
  2. Opening and Closing parenthesis - curly braces - brackets

And no more stuffs.

But it's good to say that it says the location of error, I mean in which line

For more information about the codes, revert to the codes and read the comments!

This project has been built with net beans IDE.

So if you want, you can easily clone this repository and import it on net beans.

Note that The main file is under src directory, named: JavaParser.java


grammar 1

grammar 2

image 1 - java code

image 2 - results


Authors

  • Alireza Kavian ( @alirezakay )
  • Soheil Changizi ( @cocolico14 )

Org.

  • Brilacasck

Team

  • ASCK TEAM

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A simple compiler for parsing java codes and get syntax errors with CYK algorithm for context free grammars (CFG)

Topics

cfgcnfcompilercontext-free-grammarcykeasy-parserjavajava-languagejavafxlight-parserparsersyntax-errorsynthesis

Resources

Readme
MIT license
Activity
Custom properties

Stars

8 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.