1
votes

I'm building up a Symbol Table for a compiler of a subset of C++.

My question here is how to deal with the scope in objects. I mean, in a normal language such as Pascal we should create a Symbol Table for every scope. But with C++ should I consider another approche for the case of methods and attrubtes of an object?

Regards.

1

1 Answers

0
votes

I'd say an object has a symbol table for every scope for its methods and attributes, plus another table for friend class and methods.

It's just an idea.