I am trying to implement a prototype of assembly language parser using lex/flex and yacc/bison. I want to create a symbol table which is a C++ STL vector
of a struct
. However, I am a newbie about lex and just know that as lex generates C code, I guess the symbol table can't be used directly in lex file as it C doesn't have STL.
Is there a way that can help me to manipulate vector symbol table from lex and access it from yacc code?
Thanks..
-o
flag withflex
. – Martin York