Find a file
2022-07-04 00:11:55 +02:00
src Fix some clippy pedantic errors 2022-07-04 00:11:55 +02:00
.gitignore Initial Commit 2022-07-02 23:42:15 +02:00
Cargo.lock Add custom types. Make an attempt at method calls. 2022-07-03 20:32:31 +02:00
Cargo.toml Add custom types. Make an attempt at method calls. 2022-07-03 20:32:31 +02:00
README.md Fix readme 2022-07-03 23:46:45 +02:00
test.foo Add README, update sample file, fix functions 2022-07-03 23:45:34 +02:00

Name TBD

i guess it's an embedded language?

Features

Math: +, -, *, /, %

Equality: ==, !=, >, <, >=, <=

Some basic types: String, char, int, float, bool

Custom rust types: if it implements CustomValue, it can be used

Functions: foo(x)

Methods: x.foo()

Any function is also a method, as long as it has at least one parameter. The same also works the other way around.

Some control flow: while and if/else if/else

Functions: can be defined in both the language and in Rust.

The functions defined in the language currently do not allow returning values. The return keyword does already exist however, it just doesn't do anything yet.

For some sample code, check test.foo (extension also TBD)