| Index |
This class provides information about a symbol in a rule. More...
#include "gsp__Symbol.h"
This class provides information about a symbol in a rule. For example, it tells whether the symbol is a constant, a token or a non-terminal.
Instances of this class can be obtained using a SymbolInfoCursor object.
Users can't construct by themselves SymbolInfo objects, but have to get them using SymbolInfoCursor objects.
Constructor for an object containing an invalid information.
Useful when attempting to navigate outside the valid range of symbols in a rule, in which case an invalid symbol is returned.
Private.
See also:
Constructor for an object containing a valid symbol information. The description of the symbol as coded by the generator must be passed to the constructor.
Useful when attempting to navigate outside the valid range of symbols in a rule, in which case an invalid symbol is returned.
Private.
See also:
Copy constructor.
Private.
See also:
Destructor.
See also:
Tells whether the symbol information is valid.
See also:
Tells whether the symbol is a non-terminal.
See also:
Tells whether the symbol is a terminal symbol, i.e. either a token or a constant.
See also:
Tells whether the symbol is a constant.
See also:
Tells whether the symbol is a token.
See also:
Tells whether the symbol is defined in another grammar.
See also:
Returns the representation of the symbol. If the symbol is a constant, it is the value of the constant. Otherwise, it is the name of the non-terminal or the token.
See also:
Returns the internal unique identifier of the symbol. it is a number determined at generation time by the generator.
It is used internally and users may not find any interest in this number !
Private.
See also:
Initially foreseen to chain co-related symbol information, e.g. all symbol information for a set of first symbols.
Not used at the moment.
Private.
See also:
Initially foreseen to chain co-related symbol information, e.g. all symbol information for a set of first symbols.
Not used at the moment.
Private.
See also:
Assignment operator. Makes a copy of the symbol information.
See also: