Tag

Syntax Parsing

1 views collected around this technical thread.

Goodme Frontend Team
Goodme Frontend Team
Sep 9, 2024 · Fundamentals

How JavaScript Parsers Turn Code into ASTs: Lexical & Syntax Basics

This article explains how JavaScript parsers transform source code strings into abstract syntax trees through lexical analysis and syntax parsing, covering language types, V8’s execution flow, token generation, AST construction, and practical examples, while also linking to tools like AST Explorer for further exploration.

ASTLexical AnalysisParser
0 likes · 10 min read
How JavaScript Parsers Turn Code into ASTs: Lexical & Syntax Basics
Tencent Cloud Developer
Tencent Cloud Developer
Oct 12, 2023 · Fundamentals

From 0 to 1: How to Design and Implement Your Own Scripting Language

The article walks readers through building a custom scripting language from scratch—explaining compilation basics, lexical scanning, parsing, bytecode generation, and virtual‑machine execution—using a sample language called eben to illustrate BNF syntax, variable scopes, control flow, functions, closures, object‑orientation, garbage collection, and the historical evolution of programming languages.

BNFCompilationGarbage Collection
0 likes · 46 min read
From 0 to 1: How to Design and Implement Your Own Scripting Language