blanket-script 0.0.2

BlanketScript is a simple script language inspired by Rust that transpiles to JavaScript.
Documentation
1
2
3
4
5
6
7
8
9
10
11
# Statements

All statements in BlanketScript are terminated with `;`.

## LetStatement

Let statement introduces a lexically scoped variable. Let statement is `let` keyword followed by an `identifier`, optionally followed by `:` and `type`, then `=` and expression for the value of the variable.

```text
LetStatement ::= 'let' Identifier (':' Type) '=' Expression ';'
```