Linux Manuals session 3

Section 3: library functions

  • |

    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…

  • |

    antlr3-setLine (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-setInputStream (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-setDebugListener (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-setDebugEventListener (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-setChildIndex (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…

  • |

    antlr3-setChild (3) Linux Manual Page

    src/antlr3basetree.c – Synopsis #include <antlr3basetree.h> Functions static void addChild (pANTLR3_BASE_TREE tree, pANTLR3_BASE_TREE child) static void addChildren (pANTLR3_BASE_TREE tree, pANTLR3_LIST kids) Add all elements of the supplied list as children of this node. ANTLR3_API pANTLR3_BASE_TREE antlr3BaseTreeNew (pANTLR3_BASE_TREE tree) static void * deleteChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i) static void * dupTree (pANTLR3_BASE_TREE tree) static void freshenPACIndexes (pANTLR3_BASE_TREE…