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

NAMEinclude/antlr3intstream.h − Defines the the class interface for an antlr3 INTSTREAM​.

SYNOPSIS
#include <antlr3defs​.h>
#include <antlr3commontoken​.h>

Data Structuresstruct ANTLR3_INT_STREAM_struct

Macros#define ANTLR3_CHARSTREAM 0x0001
Type indicator for a character stream​.
#define ANTLR3_COMMONTREENODE 0x0004
Type indicator for a common tree node stream​.
#define ANTLR3_INPUT_MASK 0x0007
Type mask for input stream so we can switch in the above types​.
#define ANTLR3_TOKENSTREAM 0x0002
Type indicator for a Token stream​.

Typedefstypedef struct ANTLR3_INT_STREAM_struct ANTLR3_INT_STREAM

Detailed DescriptionDefines the the class interface for an antlr3 INTSTREAM​. Certain functionality (such as DFAs for instance) abstract the stream of tokens or characters in to a steam of integers​. Hence this structure should be included in any stream that is able to provide the output as a stream of integers (which is anything basically​. There are no specific implementations of the methods in this interface in general​. Though for purposes of casting and so on, it may be necesssary to implement a function with the signature in this interface which abstracts the base immplementation​. In essence though the base stream provides a pointer to this interface, within which it installs its normal match() functions and so on​. Interaces such as DFA are then passed the pANTLR3_INT_STREAM and can treat any input as an int stream​. For instance, a lexer implements a pANTLR3_BASE_RECOGNIZER, within which there is a pANTLR3_INT_STREAM​. However, a pANTLR3_INPUT_STREAM also provides a pANTLR3_INT_STREAM, which it has constructed from it's normal interface when it was created​. This is then pointed at by the pANTLR_BASE_RECOGNIZER when it is intialized with a pANTLR3_INPUT_STREAM​. Similarly if a pANTLR3_BASE_RECOGNIZER is initialized with a pANTLR3_TOKEN_STREAM, then the pANTLR3_INT_STREAM is taken from the pANTLR3_TOKEN_STREAM​. If a pANTLR3_BASE_RECOGNIZER is initialized with a pANTLR3_TREENODE_STREAM, then guess where the pANTLR3_INT_STREAM comes from? Note that because the context pointer points to the actual interface structure that is providing the ANTLR3_INT_STREAM it is defined as a (void *) in this interface​. There is no direct implementation of an ANTLR3_INT_STREAM (unless someone did not understand what I was doing here =;?P

Macro Definition Documentation

#define ANTLR3_CHARSTREAM 0x0001Type indicator for a character stream​. Remarks if a custom stream is created but it can be treated as a char stream, then you may OR in this value to your type indicator

#define ANTLR3_COMMONTREENODE 0x0004Type indicator for a common tree node stream​. Remarks if a custom stream is created but it can be treated as a common tree node stream, then you may OR in this value to your type indicator

#define ANTLR3_INPUT_MASK 0x0007Type mask for input stream so we can switch in the above types​. Remarks DO NOT USE 0x0000 as a stream type!

#define ANTLR3_TOKENSTREAM 0x0002Type indicator for a Token stream​. Remarks if a custom stream is created but it can be treated as a token stream, then you may OR in this value to your type indicator

Typedef Documentation

typedef struct ANTLR3_INT_STREAM_struct ANTLR3_INT_STREAM

AuthorGenerated automatically by Doxygen for ANTLR3C from the source code​.
0
Johanes Gumabo
Data Size   :   13,391 byte
man-ANTLR3_CHARSTREAM.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 256,546
Visitor ID   :     :  
Visitor IP   :   3.15.1.44   :  
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.29
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.