1.
Building a language in Typescript
1.1.
Prerequisites
1.2.
What's not covered?
2.
Getting Started
2.1.
Lexing
2.2.
Parsing
2.3.
Generation
3.
Lexing
3.1.
Tokens
3.2.
Our types
3.2.1.
TokenType
3.2.2.
TokenNode
3.2.3.
TokenValueNode
3.2.4.
Token
3.3.
A basic lexer
3.3.1.
Lookaheads
3.4.
Processing tokens
3.5.
Matching strings & literals
3.5.1.
strings
3.5.2.
literals
3.6.
Testing
4.
Parsing
4.1.
Our types
4.2.
Structure
4.3.
Basic nodes
4.4.
Log Call
4.5.
Variable Assignment
4.6.
Testing
5.
Generation
5.1.
Transforming our AST
5.2.
Generating Javascript
6.
Expanding our language
6.1.
Functions
6.2.
Control Flow
6.2.1.
if statements
6.2.2.
loops
6.3.
Data Types
6.3.1.
Arrays
6.3.2.
Objects
Light (default)
Rust
Coal
Navy
Ayu
Building a language in Typescript
loops