[LLVMdev] Symbol table for complex data structure

leledumbo leledumbo_cool at yahoo.co.id
Mon Nov 1 03:17:00 PDT 2010


> The symbol table (in an AST, I assume?) deals with *symbols*. Assuming
> your complex datatype is called a "struct" for simplicity's sake, your
> symbol table would normally just store the struct's name, along with its
> AST node.

Actually, I don't put it along with the AST. It's a separate class in
separate module, should it be integrated?
Hmm... storing the AST node might be a good idea, I was duplicating the
information by copying the declaration line, type, etc. as the symbol table
entry. This is the point where I got confused in complex data type.
-- 
View this message in context: http://old.nabble.com/Symbol-table-for-complex-data-structure-tp30103380p30103564.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list