ANTLR3C 3.3.1
ANTLR3_COMMON_TOKEN_struct::[union].tokText Union Reference

Data Fields

pANTLR3_UCHAR chars
 Pointer that is used when the token just has a pointer to a char *, such as when a rewrite of an imaginary token supplies a string in the grammar.
pANTLR3_STRING text
 Some token types actually do carry around their associated text, hence (*getText)() will return this pointer if it is not NULL.

Field Documentation

◆ chars

Pointer that is used when the token just has a pointer to a char *, such as when a rewrite of an imaginary token supplies a string in the grammar.

No sense in constructing a pANTLR3_STRING just for that, as mostly the text will not be accessed - if it is, then we will build a pANTLR3_STRING for it a that point.

◆ text

Some token types actually do carry around their associated text, hence (*getText)() will return this pointer if it is not NULL.


The documentation for this union was generated from the following files: