rusty-parser Wasm

See the wiki for syntax.


Samples:

Canvas:

Data types

You can declare a type for a variable or function arguments in a syntax like a: type or fn f(a: type) -> type. type can be one of:Note that the language is still dynamically typed (although type checker can be run statically), so the type coercion only happens when you assign a value to a typed variable or typed function argument.

Built-in functions

As an experimental language, it has only few Built-in functions.

Time measurement resolution

Due to security reasons, your browser may have reduced time resolution for measurement. It is typically 0.1ms or 1ms, but can be larger. Please be aware that the lower digits may be always 0 because of this rounding. See this page for details.

Source on GitHub.