Skip to content

TTimeLanguage/Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTime Language

Feature

  • Based on CLite
  • Support Time as primitive variable
  • Support calculation of Time (like +, -)
  • Support Array of variable
  • Support Global Variable
  • Support User-defined Functions
  • Support Function Overloading
  • Support for, while, switch loop
  • Support floating point variable(float)

TTime Language Compiler

It compiles TTime Language source code to U-Code

Entry Points

1. CodeGenerator.CodeGenerator

  • code generator
  • It returns U-Code file

Parameter

  1. full path of source code
  2. full path of result file

2. Lexer.Lexer

  • Just print tokens of given source code

Parameter

  1. full path of source code

3. Parser.Parser

  • Print AST of given source code

Parameter

  1. full path of source code

4. Semantic.TypeChecker

  • Print AST if given source code is valid, or print error message

Parameter

  1. full path of source code