CodeJourney
·BacktrackingadvancedSource
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
Tokens appear here grouped by source line as the lexer scans…
Parser · AST
The syntax tree builds here once parsing begins…
Semantic · Symbols
Declared names and their types are recorded here…
Runtime Memory
Call stack
no frames yet
Heap
no objects
Output
// 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