Skip to content

true-zk/tinylanguage-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  2. reference 2

ps:

  • a curriculum design for fundamentals of compiling

About

a parser for tiny language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published