项目作者: MrHakimov

项目描述 :
Recursive descent parser in Java
高级语言: Java
项目地址: git://github.com/MrHakimov/recursive-descent-parser.git
创建时间: 2020-12-23T04:11:33Z
项目社区:https://github.com/MrHakimov/recursive-descent-parser

开源协议:

下载


recursive-descent-parser

The task is to write lexical analyzer and parser for “for loop” in C-like languages.

Grammar

Grammar and FIRST- and FOLLOW-sets are explained here.

How to run?

To run parser, which generates output for visualization for WebGraphViz do:

  1. bash run.sh

or

  1. chmod +x run.sh
  2. ./run

To run lexical analyzer to see tokens do:

  1. bash run_la.sh

or

  1. chmod +x run_la.sh
  2. ./run_la

To run tests do:

  1. bash run_tests.sh

or

  1. chmod +x run_tests.sh
  2. ./run_tests