TypeScript implementation of: Building a Parser from scratch
- Project template: [GitHub] erkobridee/vitest-ts
npm i
to check the output at the terminal
npm run lexer
npm run parser
start the vitest environment
npm start
or
npm run test
- Token.ts - defines the token data structure and the token identification rules (specs, which uses regexp)
- Lexer.ts - produce tokens
-
AST.ts - define the AST nodes and its factory helpers
-
Parser.ts - from a given source, produces the AST
-
Building a Parser from scratch | Dmitry Soshnikov (2020/12/13) - Udemy Course | Teachable
-
[GitHub] letter-rdp-source - Building a Parser from scratch
-
[GitHub] AttackOnMorty/rdp - Recursive Descent Parser
-
-
[YouTube Playlist] Building a Parser from scratch | Dmitry Soshnikov
-
[YouTube] Tokenizer / Parser | Dmitry Soshnikov (2020/11/12)
-
[YouTube] Numbers / Strings | Dmitry Soshnikov (2020/11/14)
-
[YouTube] From State Machines to Regular Expressions | Dmitry Soshnikov (2020/11/16)
-
[YouTube] Binary Expressions | Dmitry Soshnikov (2020/12/03)
-