https://github.com/seanlee97/ll1-parser
A simple LL1 compiler.
https://github.com/seanlee97/ll1-parser
parser
Last synced: 6 months ago
JSON representation
A simple LL1 compiler.
- Host: GitHub
- URL: https://github.com/seanlee97/ll1-parser
- Owner: SeanLee97
- Created: 2018-02-03T05:02:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T01:39:13.000Z (over 6 years ago)
- Last Synced: 2025-01-10T22:58:10.339Z (about 1 year ago)
- Topics: parser
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LL1-Parser
编译原理作业,实现LL1文法解析,支持规则灵活定义,错误提示
## enviroment
```
Linux
gcc version >= 3
```
## project constructs
```
|- LL1-Parse
|- driver
|- driver.cpp
|- scan.h
|- scan.cpp
|- grammar.h
|- grammar.cpp
|- Makefile - makefile
|- grammar.txt - define your own rules
|- input.txt - your own program
```
## usage
**make porject**
```bash
cd /path/to/LL1-Parser
make
```
**run**
```bash
cat input.txt | ./driver grammar.txt
```