Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrsempress/Simple-Interpreter
1. Lex and yacc; 2. ANTLR two ways to implement
https://github.com/mrsempress/Simple-Interpreter
Last synced: 2 months ago
JSON representation
1. Lex and yacc; 2. ANTLR two ways to implement
- Host: GitHub
- URL: https://github.com/mrsempress/Simple-Interpreter
- Owner: mrsempress
- Created: 2019-05-07T09:13:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T06:39:53.000Z (over 5 years ago)
- Last Synced: 2024-04-24T15:34:40.694Z (9 months ago)
- Language: C
- Size: 95.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - Simple-Interpreter
README
# Simple-Interpreter
1. Python 2. c, Lex and yacc; 2. Java, ANTLRThis interpreter implements basic drawing functions.
Through lexical analysis, parsing, semantic analysis, and the ability to add graphics.Supported statements:
ORIGIN IS(expr, expr);
ROT IS expr;
SCALE IS (expr, expr);
FOR T FROM expr TO expr STEP expr DRAW (expr, expr);
COLOR IS (RED | GREEN | BLUE) | (expr, expr, expr)Three notes:
1. --
2. //
3. /**/Divided into three phases:
The first stage, after compiling the principle course, hand-written, using python tools
The second stage, using the lex and yacc tools, but no implementation interface, MACOS system does not support
The third stage, using the ANTLR tool, implements the interface.