WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

About

TTime Language compiler (to U-Code)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5