Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# tinylanguage-parser
a parser for tiny language

file 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