From 037f5140783cd42ff24d09392ae54bdf93c4c683 Mon Sep 17 00:00:00 2001 From: imteekay Date: Thu, 27 Jul 2023 11:11:46 -0300 Subject: [PATCH] * --- .../en/index.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/allow-var-statements-to-declare-multiple-symbols-in-the-typescript-compiler/en/index.mdx b/content/allow-var-statements-to-declare-multiple-symbols-in-the-typescript-compiler/en/index.mdx index cb053708..1122a236 100644 --- a/content/allow-var-statements-to-declare-multiple-symbols-in-the-typescript-compiler/en/index.mdx +++ b/content/allow-var-statements-to-declare-multiple-symbols-in-the-typescript-compiler/en/index.mdx @@ -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. --- @@ -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).