CodeJourney

CodeJourney

·Binary Treesintermediate
Source
Lexer
Parser
AST
Semantic
Execution
Output

Source

Python
1def add(a, b):
2 return a + b
3
4x = add(3, 4)
5print(x)

Lexer · Tokens

lexical analysis

Tokens appear here grouped by source line as the lexer scans…

Parser · AST

syntax tree

The syntax tree builds here once parsing begins…

Semantic · Symbols

scope & types

Declared names and their types are recorded here…

Runtime Memory

stack · heap
Call stack
no frames yet
Heap
no objects

Output

console
// console — nothing printed yet

This is the program text. Everything that follows is derived from it.

Source · The program as you wrote it.

Speed
step 1 / 48
SourceLexerParserASTSemanticExecutionOutput