Packageorg.antlr.runtime
Classpublic class TokenConstants



Public Constants
 ConstantDefined by
  DEFAULT_CHANNEL : int = 0
[static] All tokens go to the parser (unless skip() is called in that rule) on a particular "channel".
TokenConstants
  DOWN : int = 2
[static] imaginary tree navigation type; traverse "get child" link
TokenConstants
  EOF : int = -1
[static]
TokenConstants
  EOF_TOKEN : Token
[static]
TokenConstants
  EOR_TOKEN_TYPE : int = 1
[static]
TokenConstants
  HIDDEN_CHANNEL : int = 99
[static] Anything on different channel than DEFAULT_CHANNEL is not parsed by parser.
TokenConstants
  INVALID_TOKEN : Token
[static]
TokenConstants
  INVALID_TOKEN_TYPE : int = 0
[static]
TokenConstants
  MIN_TOKEN_TYPE : int
[static]
TokenConstants
  SKIP_TOKEN : Token
[static] In an action, a lexer rule can set token to this SKIP_TOKEN and ANTLR will avoid creating a token for this symbol and try to fetch another.
TokenConstants
  UP : int = 3
[static] imaginary tree navigation type; finish with a child list
TokenConstants
Constant detail
DEFAULT_CHANNELconstant
public static const DEFAULT_CHANNEL:int = 0

All tokens go to the parser (unless skip() is called in that rule) on a particular "channel". The parser tunes to a particular channel so that whitespace etc... can go to the parser on a "hidden" channel.

DOWNconstant 
public static const DOWN:int = 2

imaginary tree navigation type; traverse "get child" link

EOFconstant 
public static const EOF:int = -1
EOF_TOKENconstant 
public static const EOF_TOKEN:Token
EOR_TOKEN_TYPEconstant 
public static const EOR_TOKEN_TYPE:int = 1
HIDDEN_CHANNELconstant 
public static const HIDDEN_CHANNEL:int = 99

Anything on different channel than DEFAULT_CHANNEL is not parsed by parser.

INVALID_TOKENconstant 
public static const INVALID_TOKEN:Token
INVALID_TOKEN_TYPEconstant 
public static const INVALID_TOKEN_TYPE:int = 0
MIN_TOKEN_TYPEconstant 
public static const MIN_TOKEN_TYPE:int
SKIP_TOKENconstant 
public static const SKIP_TOKEN:Token

In an action, a lexer rule can set token to this SKIP_TOKEN and ANTLR will avoid creating a token for this symbol and try to fetch another.

UPconstant 
public static const UP:int = 3

imaginary tree navigation type; finish with a child list