Yorumlayıcı
Çalışma zamanında kodu satır satır yürütür.
An interpreter executes code directly, translating and running one statement at a time without creating a standalone executable. This enables interactive development and immediate feedback.
Characteristics:
- No compilation step: Execute immediately
- Line-by-line execution: Process as you go
- Runtime translation: Slower than compiled code
- Platform independence: Same source runs anywhere with interpreter
graph LR
Center["Yorumlayıcı"]:::main
Rel_compiler["compiler"]:::related -.-> Center
click Rel_compiler "/terms/compiler"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 5 yaşındaki gibi açıkla
Bir yorumlayıcı, yabancı bir dildeki bir cümleyi okuyan, ne anlama geldiğini söyleyen, sonra bir sonraki cümleye geçen bir çevirmen gibidir. Tamamen çevrilmiş bir kitabı okumaktan daha yavaş, ama hemen anlayabilirsin!
🤓 Expert Deep Dive
Ağaç yürüyüşü yorumlayıcıları AST düğümlerini doğrudan yürütür. Bayt kodu yorumlayıcıları ara forma derler. İzleme JIT'leri sıcak yolları optimize eder.