include/antlr3commontoken.h - Online Linux Manual PageSection : 3
Updated : Tue Jan 26 2021
Source : Version 3.3.1
Note : ANTLR3C

NAMEinclude/antlr3commontoken.h − Defines the interface for a common token​.

SYNOPSIS
#include <antlr3defs​.h>

Data Structuresstruct ANTLR3_COMMON_TOKEN_struct
The definition of an ANTLR3 common token structure, which all implementations of a token stream should provide, installing any further structures in the custom pointer element of this structure​.
struct ANTLR3_TOKEN_FACTORY_struct
ANTLR3 Token factory interface to create lots of tokens efficiently rather than creating and freeing lots of little bits of memory​.

Macros#define ANTLR3_EOR_TOKEN_TYPE 1
#define ANTLR3_FACTORY_POOL_SIZE 1024
How many tokens to allocate at once in the token factory​.
#define ANTLR3_MIN_TOKEN_TYPE ANTLR3_TOKEN_UP + 1
First token that can be used by users/generated code​.
#define ANTLR3_TEXT_CHARP 1
#define ANTLR3_TEXT_NONE 0
#define ANTLR3_TEXT_STRING 2
#define ANTLR3_TOKEN_DEFAULT_CHANNEL 0
Default channel for a token​.
#define ANTLR3_TOKEN_DOWN 2
Imaginary token type to cause a traversal of child nodes in a tree parser​.
#define ANTLR3_TOKEN_EOF (ANTLR3_CHARSTREAM_EOF & 0xFFFFFFFF)
End of file token​.
#define ANTLR3_TOKEN_INVALID 0
Indicator of an invalid token​.
#define ANTLR3_TOKEN_UP 3
Imaginary token type to signal the end of a stream of child nodes​.
#define HIDDEN 99
Reserved channel number for a HIDDEN token - a token that is hidden from the parser​.

Typedefstypedef struct ANTLR3_COMMON_TOKEN_struct ANTLR3_COMMON_TOKEN
The definition of an ANTLR3 common token structure, which all implementations of a token stream should provide, installing any further structures in the custom pointer element of this structure​.
typedef struct ANTLR3_TOKEN_FACTORY_struct ANTLR3_TOKEN_FACTORY
ANTLR3 Token factory interface to create lots of tokens efficiently rather than creating and freeing lots of little bits of memory​.

Detailed DescriptionDefines the interface for a common token​. All token streams should provide their tokens using an instance of this common token​. A custom pointer is provided, wher you may attach a further structure to enhance the common token if you feel the need to do so​. The C runtime will assume that a token provides implementations of the interface functions, but all of them may be rplaced by your own implementation if you require it​.

Macro Definition Documentation

#define ANTLR3_EOR_TOKEN_TYPE 1

#define ANTLR3_FACTORY_POOL_SIZE 1024How many tokens to allocate at once in the token factory​.

#define ANTLR3_MIN_TOKEN_TYPE ANTLR3_TOKEN_UP + 1First token that can be used by users/generated code​.

#define ANTLR3_TEXT_CHARP 1

#define ANTLR3_TEXT_NONE 0

#define ANTLR3_TEXT_STRING 2

#define ANTLR3_TOKEN_DEFAULT_CHANNEL 0Default channel for a token​.

#define ANTLR3_TOKEN_DOWN 2Imaginary token type to cause a traversal of child nodes in a tree parser​.

#define ANTLR3_TOKEN_EOF (ANTLR3_CHARSTREAM_EOF & 0xFFFFFFFF)End of file token​.

#define ANTLR3_TOKEN_INVALID 0Indicator of an invalid token​.

#define ANTLR3_TOKEN_UP 3Imaginary token type to signal the end of a stream of child nodes​.

#define HIDDEN 99Reserved channel number for a HIDDEN token - a token that is hidden from the parser​.

Typedef Documentation

typedef struct ANTLR3_COMMON_TOKEN_struct ANTLR3_COMMON_TOKENThe definition of an ANTLR3 common token structure, which all implementations of a token stream should provide, installing any further structures in the custom pointer element of this structure​. Remarks Token streams are in essence provided by lexers or other programs that serve as lexers​.

typedef struct ANTLR3_TOKEN_FACTORY_struct ANTLR3_TOKEN_FACTORYANTLR3 Token factory interface to create lots of tokens efficiently rather than creating and freeing lots of little bits of memory​.

AuthorGenerated automatically by Doxygen for ANTLR3C from the source code​.
0
Johanes Gumabo
Data Size   :   17,025 byte
man-ANTLR3_TOKEN_UP.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 170,493
Visitor ID   :     :  
Visitor IP   :   18.190.239.189   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.