|
7.1 Symbol AttributesEach piece of information associated with a name is called an attribute (not to be confused with the term semantic attribute from Module 6.) Attributes are language dependent, but might include the characters in the name, the name's type, and even storage allocation information such as how many bytes the value will occupy. Often, the line number where the name is declared is recorded as well as the lines where the symbol is referenced. If the language contains scopes, as most do (FORTRAN is an exception), then the scope is often entered into the symbol table. We will discuss a number of attributes separately beginning with the class attribute. The class of a name is an important attribute Send questions and comments to: Karen Lemone |