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
- open a terminal in build
- $make clean : clean build files
- $make parse : build the tiny language parser
- $make testp : test the sample in ./build/test/sample.tny
cite:
- introduction to tiny language
ps:
- a curriculum design for fundamentals of compiling