Linux Manuals session 3

Section 3: library functions

  • |

    antlr3-setParent (3) Linux Manual Page

    src/antlr3commontree.c – Synopsis#include <antlr3commontree.h> FunctionsANTLR3_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 getCharPositionInLine (pANTLR3_BASE_TREE…

  • |

    antlr3-setLine (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis#include <antlr3.h> FunctionsANTLR3_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 token) Contains…

  • |

    antlr3-setInputStream (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis#include <antlr3.h> FunctionsANTLR3_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 token) Contains…

  • |

    antlr3-setDebugListener (3) Linux Manual Page

    src/antlr3parser.c – Implementation of the base functionality for an ANTLR3 parser. Synopsis#include <antlr3parser.h> FunctionsANTLR3_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 (pANTLR3_PARSER parser,…

  • |

    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> FunctionsANTLR3_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 to a…

  • |

    antlr3-setChildIndex (3) Linux Manual Page

    src/antlr3commontree.c – Synopsis#include <antlr3commontree.h> FunctionsANTLR3_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 getCharPositionInLine (pANTLR3_BASE_TREE…

  • |

    antlr3-setChild (3) Linux Manual Page

    src/antlr3basetree.c – Synopsis#include <antlr3basetree.h> Functionsstatic 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 tree, ANTLR3_UINT32…

  • |

    antlr3-setCharStream (3) Linux Manual Page

    src/antlr3lexer.c – Base implementation of an antlr 3 lexer. Synopsis#include <antlr3lexer.h> FunctionsANTLR3_API pANTLR3_LEXER antlr3LexerNew (ANTLR3_UINT32 sizeHint, pANTLR3_RECOGNIZER_SHARED_STATE state) ANTLR3_API pANTLR3_LEXER antlr3LexerNewStream (ANTLR3_UINT32 sizeHint, pANTLR3_INPUT_STREAM input, pANTLR3_RECOGNIZER_SHARED_STATE state) static void displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 *tokenNames) Default lexer error handler (works for 8 bit streams only!!!). static pANTLR3_COMMON_TOKEN emit (pANTLR3_LEXER lexer) static void emitNew (pANTLR3_LEXER lexer, pANTLR3_COMMON_TOKEN…

  • |

    antlr3-setCharPositionInLine (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis#include <antlr3.h> FunctionsANTLR3_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 token) Contains…

  • |

    antlr3-setChannel (3) Linux Manual Page

    src/antlr3commontoken.c – Synopsis#include <antlr3.h> FunctionsANTLR3_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 token) Contains…

  • |

    antlr3-set8 (3) Linux Manual Page

    src/antlr3string.c – Implementation of the ANTLR3 string and string factory classes. Synopsis#include <antlr3string.h> Functionsstatic 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 that is…

  • |

    antlr3-set16_8 (3) Linux Manual Page

    src/antlr3string.c – Implementation of the ANTLR3 string and string factory classes. Synopsis#include <antlr3string.h> Functionsstatic 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 that is…

  • |

    antlr3-set16_16 (3) Linux Manual Page

    src/antlr3string.c – Implementation of the ANTLR3 string and string factory classes. Synopsis#include <antlr3string.h> Functionsstatic 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 that is…

  • |

    antlr3-set (3) Linux Manual Page

    ANTLR3_STRING_struct – Base string class tracks the allocations and provides simple string tracking functions. Synopsis#include <antlr3string.h> Data FieldspANTLR3_UINT8(* addc )(struct ANTLR3_STRING_struct *string, ANTLR3_UINT32 c) Pointer to function that adds a single character to the end of the string, in the encoding of the string – 8 bit, 16 bit, utf-8 etc. pANTLR3_UINT8(* addi )(struct ANTLR3_STRING_struct…

  • |

    antlr3-serializeToken (3) Linux Manual Page

    src/antlr3debughandlers.c – Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool. Synopsis#include <antlr3.h> Functionsstatic void ack (pANTLR3_DEBUG_EVENT_LISTENER delboy) static void addChild (pANTLR3_DEBUG_EVENT_LISTENER delboy, pANTLR3_BASE_TREE root, pANTLR3_BASE_TREE child) ANTLR3_API pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNew () Create and initialize a new debug event listener that can be connected to by ANTLRWorks…

  • |

    antlr3-serializeText (3) Linux Manual Page

    src/antlr3debughandlers.c – Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool. Synopsis#include <antlr3.h> Functionsstatic void ack (pANTLR3_DEBUG_EVENT_LISTENER delboy) static void addChild (pANTLR3_DEBUG_EVENT_LISTENER delboy, pANTLR3_BASE_TREE root, pANTLR3_BASE_TREE child) ANTLR3_API pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNew () Create and initialize a new debug event listener that can be connected to by ANTLRWorks…

  • |

    antlr3-serializeNode (3) Linux Manual Page

    src/antlr3debughandlers.c – Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool. Synopsis#include <antlr3.h> Functionsstatic void ack (pANTLR3_DEBUG_EVENT_LISTENER delboy) static void addChild (pANTLR3_DEBUG_EVENT_LISTENER delboy, pANTLR3_BASE_TREE root, pANTLR3_BASE_TREE child) ANTLR3_API pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNew () Create and initialize a new debug event listener that can be connected to by ANTLRWorks…

  • |

    antlr3-semanticPredicate (3) Linux Manual Page

    src/antlr3debughandlers.c – Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool. Synopsis#include <antlr3.h> Functionsstatic void ack (pANTLR3_DEBUG_EVENT_LISTENER delboy) static void addChild (pANTLR3_DEBUG_EVENT_LISTENER delboy, pANTLR3_BASE_TREE root, pANTLR3_BASE_TREE child) ANTLR3_API pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNew () Create and initialize a new debug event listener that can be connected to by ANTLRWorks…

  • |

    antlr3-seek (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> Functionsstatic 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 this common…

  • |

    antlr3-savedIndex (3) Linux Manual Page

    ANTLR3_BASE_TREE_struct – A generic tree implementation with no payload. Synopsis#include <antlr3basetree.h> Data Fieldsvoid(* addChild )(struct ANTLR3_BASE_TREE_struct *tree, void *child) void(* addChildren )(struct ANTLR3_BASE_TREE_struct *tree, pANTLR3_LIST kids) pANTLR3_VECTOR children The list of all the children that belong to this node. void(* createChildrenList )(struct ANTLR3_BASE_TREE_struct *tree) void *(* deleteChild )(struct ANTLR3_BASE_TREE_struct *tree, ANTLR3_UINT32 i) void *(* dupNode…