ANTLR3_TOKEN_FACTORY_struct - Online Linux Manual PageSection : 3
Updated : Tue Jan 26 2021
Source : Version 3.3.1
Note : ANTLR3C
NAMEANTLR3_TOKEN_FACTORY_struct − ANTLR3 Token factory interface to create lots of tokens efficiently rather than creating and freeing lots of little bits of memory.
SYNOPSIS
#include <antlr3commontoken.h>
Data Fieldsvoid(* close )(struct ANTLR3_TOKEN_FACTORY_struct *factory)
Pointer to a function the destroys the factory. pANTLR3_INPUT_STREAM input
Pointer to an input stream that is using this token factory (may be NULL) which will be assigned to the tokens automatically. ANTLR3_INT32 maxPool
Maximum pool count we have available. pANTLR3_COMMON_TOKEN(* newToken )(struct ANTLR3_TOKEN_FACTORY_struct *factory)
Pointer to a function that returns a new token. ANTLR3_UINT32 nextToken
The next token to throw out from the pool, will cause a new pool allocation if this exceeds the available tokenCount. pANTLR3_COMMON_TOKEN * pools
Pointers to the array of tokens that this factory has produced so far. void(* reset )(struct ANTLR3_TOKEN_FACTORY_struct *factory)
Pointer to a function that resets the factory so you can reuse the pools it has laready allocated. void(* setInputStream )(struct ANTLR3_TOKEN_FACTORY_struct *factory, pANTLR3_INPUT_STREAM input)
Pointer to a function that changes teh curent inptu stream so that new tokens are created with reference to their originating text. ANTLR3_INT32 thisPool
Current pool tokens we are allocating from. ANTLR3_COMMON_TOKEN unTruc
Trick to initialize tokens and their API quickly, we set up this token when the factory is created, then just copy the memory it uses into the new token.
Detailed DescriptionANTLR3 Token factory interface to create lots of tokens efficiently rather than creating and freeing lots of little bits of memory.
Field Documentation
void(* ANTLR3_TOKEN_FACTORY_struct::close) (struct ANTLR3_TOKEN_FACTORY_struct *factory)Pointer to a function the destroys the factory. Referenced by antlr3TokenFactoryNew(), ctaFree(), freeBR(), and freeLexer().
pANTLR3_INPUT_STREAM ANTLR3_TOKEN_FACTORY_struct::inputPointer to an input stream that is using this token factory (may be NULL) which will be assigned to the tokens automatically. Referenced by createToken(), newPoolToken(), and setInputStream().
ANTLR3_INT32 ANTLR3_TOKEN_FACTORY_struct::maxPoolMaximum pool count we have available. Referenced by antlr3TokenFactoryNew(), and newPool().
pANTLR3_COMMON_TOKEN(* ANTLR3_TOKEN_FACTORY_struct::newToken) (struct ANTLR3_TOKEN_FACTORY_struct *factory)Pointer to a function that returns a new token. Referenced by antlr3TokenFactoryNew(), createToken(), createTokenFromToken(), emit(), and getMissingSymbol().
ANTLR3_UINT32 ANTLR3_TOKEN_FACTORY_struct::nextTokenThe next token to throw out from the pool, will cause a new pool allocation if this exceeds the available tokenCount. Referenced by factoryClose(), newPool(), and newPoolToken().
pANTLR3_COMMON_TOKEN* ANTLR3_TOKEN_FACTORY_struct::poolsPointers to the array of tokens that this factory has produced so far. Referenced by antlr3TokenFactoryNew(), factoryClose(), newPool(), and newPoolToken().
void(* ANTLR3_TOKEN_FACTORY_struct::reset) (struct ANTLR3_TOKEN_FACTORY_struct *factory)Pointer to a function that resets the factory so you can reuse the pools it has laready allocated. Referenced by antlr3TokenFactoryNew(), and reset().
void(* ANTLR3_TOKEN_FACTORY_struct::setInputStream) (struct ANTLR3_TOKEN_FACTORY_struct *factory, pANTLR3_INPUT_STREAM input)Pointer to a function that changes teh curent inptu stream so that new tokens are created with reference to their originating text. Referenced by antlr3TokenFactoryNew(), and setCharStream().
ANTLR3_INT32 ANTLR3_TOKEN_FACTORY_struct::thisPoolCurrent pool tokens we are allocating from. Referenced by antlr3TokenFactoryNew(), factoryClose(), factoryReset(), newPool(), and newPoolToken().
ANTLR3_COMMON_TOKEN ANTLR3_TOKEN_FACTORY_struct::unTrucTrick to initialize tokens and their API quickly, we set up this token when the factory is created, then just copy the memory it uses into the new token. Referenced by ANTLR3_TREE_ADAPTORNew(), antlr3TokenFactoryNew(), and setInputStream().
AuthorGenerated automatically by Doxygen for ANTLR3C from the source code. 0
Johanes Gumabo
Data Size : 18,529 byte
man-ANTLR3_TOKEN_FACTORY_struct.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 169,565
Visitor ID : :
Visitor IP : 3.145.43.92 :
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.