Displaying 1 result from an estimated 1 matches for "my_static_memb".
Did you mean:
my_static_member
2010 Nov 01
2
[LLVMdev] Symbol table for complex data structure
...T, 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.
Unless you want specific handling for static-style data member accesses
(MyClass::my_static_member in C++), there is no need to add each element
in the struct to the symbol table. The main reason for this is that it
holds no semantic value:
* A struct S is a specific type, which can be instantiated. It would
therefore be added to the symbol table as it can be referred to by code
(my $s = new...