Skip to content

Osrepnay/lithp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lithp

A simple toy language I made.
Everything in Lithp is a function. Here are the current builtin functions:

=(name, value)
==(arg1, arg2, arg3, ...)
<(arg1, arg2, arg3, ...)
>(arg1, arg2, arg3, ...)
*(arg1, arg2, arg3, ...)
/(arg1, arg2, arg3, ...)
+(arg1, arg2, arg3, ...)
-(arg1, arg2, arg3, ...)
ifElse(boolean, execIfTrue, execIfFalse)
print(value)

See the examples directory for examples.
To run a Lithp program, pass in the path of the file as an argument, e.g. if running from Cargo use cargo run /path/to/lithp/file.lthp or ./lithp /path/to/lithp/file.lthp if running from a binary.

About

A bad language I made

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages