raustin9 / ThunderBirdCompiler

Compiler for ThunderBird language. Uses hand-built lexer and recursive descent parser for the front end. Back end will be handled using LLVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

recursively search for identifier in symbol tables

raustin9 opened this issue · comments

When recursing down the abstract syntax tree, check the scopes up the parent tree to determine if an identifier is in one of them. If the identifier is found, stop searching as the identifier that it should pick is the one 'lowest' to the original scope.