Skip to content

0x15BA88FF/templit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templit Thesis

Templit runs on 3 simple mechanisms

  1. Data
  2. Hooks
  3. Functions

Nothing Else!!!

Strict implicit typing and garbage collection

I'm not handling most of that complex stuff. Python will do most of the heavy lifting so I can focus on parsing, lexing and interpreting. I might do more complex stuff later

1. Data Types / Structures: Self explanatory

  • String: "foo"
  • Float: 1.23
  • Integer: 123
  • Boolean: true, false

2. Hooks: words that just enclose a block of templit code. When tempc

runs with the compile signal it triggers every compile hook, if it runs with the update hook it executes all update hooks e.t.c. They look like this {{hook::...}}

  1. Functions: Like in most other language. They must always return a value, Functions are created and used like this
# Create a funtion
adder(a, b) {
  concat(a, "+", b, "=", sum(1, b));
}

# Call a function
adder(10, 15)

About

An embedable programming language with amazing error messages and simple syntax

Resources

Stars

Watchers

Forks

Contributors