- parser: parseFunctionDecl() parametreleri artık AST'ye alıyor (FunctionDeclNode::params alanı eklendi; declarations.hpp/cpp güncellendi) - parser: parseDeclaration() kullanıcı-tanımlı tip (struct alanı) desteği - ast_json: addArray() m_hasArrayItem sıfırlama hatası düzeltildi (birden fazla dizi alanı içeren düğümlerde bozuk JSON üretimi giderildi) - src/symbol/: Symbol, Scope, SymbolTable, SymbolCollector eklendi * İki geçiş: pass1 global hoist, pass2 gövde + declare-before-use * E001 tanımsız isim, E002 çift tanım, E010 döngüsel struct * print builtin tohumlama (TODO: #89 katalog) - cli/symbols: yeni SymbolTable/Collector kullanıyor; tip + refs çıktısı - examples/symbols/: dup.sqt, undef.sqt, cyclic.sqt test fixture'ları Doğrulama: build/saqut symbols file:examples/fibonacci.sqt → 0 hata, 10 sembol examples/symbols/dup.sqt → E002 examples/symbols/undef.sqt → E001 examples/symbols/cyclic.sqt → E010 tests/run.sh → TUM TESTLER GECTI AST JSON → geçerli Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| parser-stress | ||
| symbols | ||
| fibonacci.sqt | ||
| source.sqt | ||