A miniature model of the Typescript compiler, intended to teach the structure of the real Typescript compiler
MIT License
This is a fork from Nathan Shively-Sanders's mini-typescript.
The purpose of this repo is to practice the exercises and learn more about compilers and TypeScript.
# Get set up
npm i
npm run build
# Or have your changes instantly happen
npm run build --watch
# Run the compiler:
npm run mtsc ./tests/singleVar.ts
Literal
to NumericLiteral
(https://github.com/imteekay/mini-typescript-fork/pull/6).var
and let
the same way. The simplest way is to add a kind
property to Symbol
.let
to var
.interface
.
type
and interface
the same way.let
-> var
.