项目作者: mateodaza

项目描述 :
Top-Down Parser Simulation on Java.
高级语言: Java
项目地址: git://github.com/mateodaza/Top-Down-Parser.git
创建时间: 2017-05-24T17:01:35Z
项目社区:https://github.com/mateodaza/Top-Down-Parser

开源协议:

下载


Top-Down-Parser

Given a context-free grammar on a txt file, the app will remove left recursion and apply left factoring if needed.
Then based on FIRST and FOLLOW sets, it will generate a parse table which can be tested with some words examples.
You can test it with the exemple.txt file that’s in the folder.

Grammar Productions Syntax

  • NonTerminals: UpperCase letters
  • Terminals: Any symbol except for > or Uppercase letters

Grammar File Example

  1. E->E+T
  2. E->T
  3. T->T*F
  4. T->F
  5. F->i
  6. F->(E)

By the way

This was a Compilers class project and the UI is on Spanish. I hope its useful somehow!

Author

Mateo Daza - Universidad del Norte

:)