add positions to the stack var errors
move the undefined symbol tracking to the symbol table