add parser error check on function def specifier
basic FSM for symbol table