SysTutorials Posts

  • |

    antlr3-sizeHint (3) Linux Manual Page

    ANTLR3_RECOGNIZER_SHARED_STATE_struct – All the data elements required to track the current state of any recognizer (lexer, parser, tree parser). Synopsis #include <antlr3recognizersharedstate.h> Data Fields ANTLR3_INT32 backtracking If 0, no backtracking is going on. ANTLR3_UINT32 channel The channel number for the current token. void * custom ANTLR3_BOOLEAN error If set to ANTLR3_TRUE then the recognizer has…

  • |

    antlr3-sizeBuf (3) Linux Manual Page

    ANTLR3_INPUT_STREAM_struct – Master context structure for an ANTLR3 C runtime based input stream. Synopsis #include <antlr3input.h> Data Fields void *(* _LT )(struct ANTLR3_INPUT_STREAM_struct *input, ANTLR3_INT32 lt) Pointer to function to return input stream element at 1 based offset from nextChar. ANTLR3_UINT8 charByteSize Indicates the size, in 8 bit units, of a single character. ANTLR3_INT32 charPositionInLine…

  • |

    antlr3-size (3) Linux Manual Page

    NAME src/antlr3commontreenodestream.c – Defines the implementation of the common node stream the default tree node stream used by ANTLR. SYNOPSIS #include <antlr3commontreenodestream.h> Functions static ANTLR3_UINT32 _LA (pANTLR3_INT_STREAM is, ANTLR3_INT32 i) static pANTLR3_BASE_TREE _LT (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k) static void addNavigationNode (pANTLR3_COMMON_TREE_NODE_STREAM ctns, ANTLR3_UINT32 ttype) static void antlr3CommonTreeNodeStreamFree (pANTLR3_COMMON_TREE_NODE_STREAM ctns) Free up any resources that belong…

  • |

    antlr3-singleElement (3) Linux Manual Page

    ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct – A generic list of elements tracked in an alternative to be used in a -> rewrite rule. Synopsis #include <antlr3rewritestreams.h> Data Fields void *(* _next )(struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct *stream) pANTLR3_BASE_TREE_ADAPTOR adaptor Pointer to the tree adaptor in use for this stream. void(* add )(struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct *stream, void *el, void(ANTLR3_CDECL *freePtr)(void *)) Add a new…

  • |

    antlr3-simulateTreeConstruction (3) Linux Manual Page

    src/antlr3basetreeadaptor.c – Contains the base functions that all tree adaptors start with. Synopsis #include <antlr3basetreeadaptor.h> Functions static void addChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child) Add a child to the tree t. static void addChildToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_COMMON_TOKEN child) Use the adaptor implementation to add a child node with the supplied token. ANTLR3_API…

  • |

    antlr3-setUniqueNavigationNodes (3) Linux Manual Page

    src/antlr3commontreenodestream.c – Defines the implementation of the common node stream the default tree node stream used by ANTLR. Synopsis #include <antlr3commontreenodestream.h> Functions static ANTLR3_UINT32 _LA (pANTLR3_INT_STREAM is, ANTLR3_INT32 i) static pANTLR3_BASE_TREE _LT (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k) static void addNavigationNode (pANTLR3_COMMON_TREE_NODE_STREAM ctns, ANTLR3_UINT32 ttype) static void antlr3CommonTreeNodeStreamFree (pANTLR3_COMMON_TREE_NODE_STREAM ctns) Free up any resources that belong to…

  • |

    antlr3-setUcaseLA (3) Linux Manual Page

    ANTLR3_INPUT_STREAM_struct – Master context structure for an ANTLR3 C runtime based input stream. Synopsis #include <antlr3input.h> Data Fields void *(* _LT )(struct ANTLR3_INPUT_STREAM_struct *input, ANTLR3_INT32 lt) Pointer to function to return input stream element at 1 based offset from nextChar. ANTLR3_UINT8 charByteSize Indicates the size, in 8 bit units, of a single character. ANTLR3_INT32 charPositionInLine…

  • |

    antlr3-setType (3) Linux Manual Page

    src/antlr3basetreeadaptor.c – Contains the base functions that all tree adaptors start with. Synopsis #include <antlr3basetreeadaptor.h> Functions static void addChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child) Add a child to the tree t. static void addChildToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_COMMON_TOKEN child) Use the adaptor implementation to add a child node with the supplied token. ANTLR3_API…

  • |

    antlr3-setTreeNodeStream (3) Linux Manual Page

    src/antlr3treeparser.c – Implementation of the tree parser and overrides for the base recognizer. Synopsis #include <antlr3treeparser.h> Functions ANTLR3_API void antlr3MTNExceptionNew (pANTLR3_BASE_RECOGNIZER recognizer) Creates a new Mismatched Tree Nde Exception and inserts in the recognizer exception stack. ANTLR3_API pANTLR3_TREE_PARSER antlr3TreeParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_COMMON_TREE_NODE_STREAM ctnstream, pANTLR3_RECOGNIZER_SHARED_STATE state) static void freeParser (pANTLR3_TREE_PARSER parser) static void * getCurrentInputSymbol (pANTLR3_BASE_RECOGNIZER…

  • |

    antlr3-setTokenTypeChannel (3) Linux Manual Page

    src/antlr3tokenstream.c – Default implementation of CommonTokenStream. Synopsis #include <antlr3tokenstream.h> Functions static ANTLR3_UINT32 _LA (pANTLR3_INT_STREAM is, ANTLR3_INT32 i) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenDebugStreamSourceNew (ANTLR3_UINT32 hint, pANTLR3_TOKEN_SOURCE source, pANTLR3_DEBUG_EVENT_LISTENER debugger) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenStreamNew (ANTLR3_UINT32 hint) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenStreamSourceNew (ANTLR3_UINT32 hint, pANTLR3_TOKEN_SOURCE source) static void antlr3CTSFree (pANTLR3_COMMON_TOKEN_STREAM stream) static void antlr3TokenStreamFree (pANTLR3_TOKEN_STREAM stream) ANTLR3_API pANTLR3_TOKEN_STREAM antlr3TokenStreamNew () static void consume…

  • |

    antlr3-setTokenStream (3) Linux Manual Page

    src/antlr3parser.c – Implementation of the base functionality for an ANTLR3 parser. Synopsis #include <antlr3parser.h> Functions ANTLR3_API pANTLR3_PARSER antlr3ParserNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state) ANTLR3_API pANTLR3_PARSER antlr3ParserNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_RECOGNIZER_SHARED_STATE state) ANTLR3_API pANTLR3_PARSER antlr3ParserNewStreamDbg (ANTLR3_UINT32 sizeHint, pANTLR3_TOKEN_STREAM tstream, pANTLR3_DEBUG_EVENT_LISTENER dbg, pANTLR3_RECOGNIZER_SHARED_STATE state) static void freeParser (pANTLR3_PARSER parser) static pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser) static void setDebugListener…

  • |

    antlr3-setTokenSource (3) Linux Manual Page

    src/antlr3tokenstream.c – Default implementation of CommonTokenStream. Synopsis #include <antlr3tokenstream.h> Functions static ANTLR3_UINT32 _LA (pANTLR3_INT_STREAM is, ANTLR3_INT32 i) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenDebugStreamSourceNew (ANTLR3_UINT32 hint, pANTLR3_TOKEN_SOURCE source, pANTLR3_DEBUG_EVENT_LISTENER debugger) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenStreamNew (ANTLR3_UINT32 hint) ANTLR3_API pANTLR3_COMMON_TOKEN_STREAM antlr3CommonTokenStreamSourceNew (ANTLR3_UINT32 hint, pANTLR3_TOKEN_SOURCE source) static void antlr3CTSFree (pANTLR3_COMMON_TOKEN_STREAM stream) static void antlr3TokenStreamFree (pANTLR3_TOKEN_STREAM stream) ANTLR3_API pANTLR3_TOKEN_STREAM antlr3TokenStreamNew () static void consume…

  • |

    antlr3-setTokenIndex (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis #include <antlr3.h> Functions ANTLR3_API pANTLR3_COMMON_TOKEN antlr3CommonTokenNew (ANTLR3_UINT32 ttype) ANTLR3_API void antlr3SetTokenAPI (pANTLR3_COMMON_TOKEN token) ANTLR3_API pANTLR3_TOKEN_FACTORY antlr3TokenFactoryNew (pANTLR3_INPUT_STREAM input) static void factoryClose (pANTLR3_TOKEN_FACTORY factory) static ANTLR3_UINT32 getChannel (pANTLR3_COMMON_TOKEN token) static ANTLR3_INT32 getCharPositionInLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_UINT32 getLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStartIndex (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStopIndex (pANTLR3_COMMON_TOKEN token) static pANTLR3_STRING getText (pANTLR3_COMMON_TOKEN…

  • |

    antlr3-setTokenBoundaries (3) Linux Manual Page

    src/antlr3commontreeadaptor.c – This is the standard tree adaptor used by the C runtime unless the grammar source file says to use anything different. Synopsis #include <antlr3commontreeadaptor.h> Functions ANTLR3_API pANTLR3_BASE_TREE_ADAPTOR ANTLR3_TREE_ADAPTORDebugNew (pANTLR3_STRING_FACTORY strFactory, pANTLR3_DEBUG_EVENT_LISTENER debugger) Debugging version of the tree adaptor (not normally called as generated code calls setDebugEventListener instead which changes a normal token stream…

  • |

    antlr3-setText8 (3) Linux Manual Page

    src/antlr3basetreeadaptor.c – Contains the base functions that all tree adaptors start with. Synopsis #include <antlr3basetreeadaptor.h> Functions static void addChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child) Add a child to the tree t. static void addChildToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_COMMON_TOKEN child) Use the adaptor implementation to add a child node with the supplied token. ANTLR3_API…

  • |

    antlr3-setText (3) Linux Manual Page

    src/antlr3basetreeadaptor.c – Contains the base functions that all tree adaptors start with. Synopsis #include <antlr3basetreeadaptor.h> Functions static void addChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child) Add a child to the tree t. static void addChildToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_COMMON_TOKEN child) Use the adaptor implementation to add a child node with the supplied token. ANTLR3_API…

  • |

    antlr3-setStopIndex (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis #include <antlr3.h> Functions ANTLR3_API pANTLR3_COMMON_TOKEN antlr3CommonTokenNew (ANTLR3_UINT32 ttype) ANTLR3_API void antlr3SetTokenAPI (pANTLR3_COMMON_TOKEN token) ANTLR3_API pANTLR3_TOKEN_FACTORY antlr3TokenFactoryNew (pANTLR3_INPUT_STREAM input) static void factoryClose (pANTLR3_TOKEN_FACTORY factory) static ANTLR3_UINT32 getChannel (pANTLR3_COMMON_TOKEN token) static ANTLR3_INT32 getCharPositionInLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_UINT32 getLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStartIndex (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStopIndex (pANTLR3_COMMON_TOKEN token) static pANTLR3_STRING getText (pANTLR3_COMMON_TOKEN…

  • |

    antlr3-setStartIndex (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis #include <antlr3.h> Functions ANTLR3_API pANTLR3_COMMON_TOKEN antlr3CommonTokenNew (ANTLR3_UINT32 ttype) ANTLR3_API void antlr3SetTokenAPI (pANTLR3_COMMON_TOKEN token) ANTLR3_API pANTLR3_TOKEN_FACTORY antlr3TokenFactoryNew (pANTLR3_INPUT_STREAM input) static void factoryClose (pANTLR3_TOKEN_FACTORY factory) static ANTLR3_UINT32 getChannel (pANTLR3_COMMON_TOKEN token) static ANTLR3_INT32 getCharPositionInLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_UINT32 getLine (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStartIndex (pANTLR3_COMMON_TOKEN token) static ANTLR3_MARKER getStopIndex (pANTLR3_COMMON_TOKEN token) static pANTLR3_STRING getText (pANTLR3_COMMON_TOKEN…

  • |

    antlr3-setS (3) Linux Manual Page

    src/antlr3string.c – Implementation of the ANTLR3 string and string factory classes. Synopsis #include <antlr3string.h> Functions static pANTLR3_UINT8 addc16 (pANTLR3_STRING string, ANTLR3_UINT32 c) static pANTLR3_UINT8 addc8 (pANTLR3_STRING string, ANTLR3_UINT32 c) static pANTLR3_UINT8 addi16 (pANTLR3_STRING string, ANTLR3_INT32 i) static pANTLR3_UINT8 addi8 (pANTLR3_STRING string, ANTLR3_INT32 i) ANTLR3_API pANTLR3_STRING_FACTORY antlr3StringFactoryNew () ANTLR3_API pANTLR3_STRING_FACTORY antlr3UCS2StringFactoryNew () Create a string factory…

  • |

    antlr3-setParent (3) Linux Manual Page

    src/antlr3commontree.c – Synopsis #include <antlr3commontree.h> Functions ANTLR3_API pANTLR3_ARBORETUM antlr3ArboretumNew (pANTLR3_STRING_FACTORY strFactory) ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNew () ANTLR3_API pANTLR3_COMMON_TREE antlr3CommonTreeNewFromToken (pANTLR3_COMMON_TOKEN token) ANTLR3_API void antlr3SetCTAPI (pANTLR3_COMMON_TREE tree) static void createChildrenList (pANTLR3_BASE_TREE tree) Create a new vector for holding child nodes using the inbuilt vector factory. static pANTLR3_BASE_TREE dupNode (pANTLR3_BASE_TREE tree) static void factoryClose (pANTLR3_ARBORETUM factory) static ANTLR3_UINT32…