Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Jul 27, 2023
1 parent ce4d582 commit 037f514
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ This is the 6th post of the **[TypeScript Compiler Series](/series/the-typescrip
- [Implementing StringLiterals for the TypeScript Compiler](/implementing-string-literals-for-the-typescript-compiler)
- [Building EmptyStatement and Semicolon as a statement ender for the TypeScript compiler](/building-emptystatement-and-semicolon-as-statement-ender-for-the-typescript-compiler)

Now we are going to see the implementation of declaring multiple symbols for variable statements. We'll see some examples, implement new tokens in the lexer phase, create new AST nodes in the parser, refactor the binder and the type checker to synchronize with the new AST structure, and transform and emit JS.
Now we are going to see the implementation of declaring multiple symbols for variable statements.

We'll see some examples, implement new tokens in the lexer phase, create new AST nodes in the parser, refactor the binder and the type checker to synchronize with the new AST structure, and transform and emit JS.

---

Expand All @@ -28,6 +30,8 @@ var n: number = 1,
n2: number = 3;
```

---

## `Lexer`: building tokens for the declaration list

Looking at the examples above, it's pretty obvious the missing token is the `,` (comma).
Expand Down

0 comments on commit 037f514

Please sign in to comment.