Skip to content

Commit 59a4b21

Browse files
committed
chore: update architecture file
1 parent bea6d7a commit 59a4b21

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/architecture.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ Key features:
196196

197197
#### Stage 2: Parser (Syntax Analysis)
198198

199-
**Purpose:** Understand the structure of the code and build a tree representation.
199+
**Purpose:** Understand the structure of the code and build a tree representation, called the Abstract Syntax Tree (AST).
200+
##### Parsers are fundamentally based on context-free grammars (CFGs), which are used to define the syntax of programming languages and natural language structures.
201+
202+
<img src="./parser.png" />
200203

201204
**Input:** Tokens from the lexer
202205
**Output:** AST (Abstract Syntax Tree)

docs/image.png

801 KB
Loading

docs/parser.png

801 KB
Loading

0 commit comments

Comments
 (0)