Skip to content

andiputraw/m.th

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M.th

Experssion based toy programming language.

Example:

-- arithmetic
10 - 3 + 4
-- output: 11

-- Variable declaration
let x = 10 + 2 * 3
-- output: 0 (assignment and function delaration evaluate to 0)

x
-- output: 26

let times(x,y) = x * y
-- output: 0

times(2,3)
-- output: 6

Building

zig build

Runtting the test

zig build test

Todo:

[x]: basic arithmetic

[x]: var declaration

[x]: function declaration and call

[]: ternary operator

[]: FFI

[]: compile to javascript

[]: compile to assembly

[]: compile to webassembly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages