Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/true-zk/tinylanguage-parser
a parser for tiny language
https://github.com/true-zk/tinylanguage-parser
Last synced: 3 months ago
JSON representation
a parser for tiny language
- Host: GitHub
- URL: https://github.com/true-zk/tinylanguage-parser
- Owner: true-zk
- Created: 2022-12-24T13:54:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T08:55:16.000Z (almost 2 years ago)
- Last Synced: 2024-06-25T03:35:01.532Z (5 months ago)
- Language: C
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-scs - 2022 - Tinylanguage-parser
README
# tinylanguage-parser
a parser for tiny languagefile structure & discription:
- main.c : program entry : int main()
- globals.h : data structure
- util.c util.h : printToken printSyntaxTree copyString createNewNode...
- lexer.c lexer.h : tiny language lexer : call getToken to return next symbol
- parses.c parse.h : tiny language parser: parse the input code and output a syntax tree
usage:
- win
1. open a terminal in build
2. $make clean : clean build files
3. $make parse : build the tiny language parser
4. $make testp : test the sample in ./build/test/sample.tny
cite:
- introduction to tiny language
1. [reference 1 ](https://blog.csdn.net/qq_41112170/article/details/106891811)
2. [reference 2 ](https://slideplayer.com/slide/7733294/)ps:
- a curriculum design for fundamentals of compiling