TinyaP::Parser Class Reference

#include <tinyap.h>

Collaboration diagram for TinyaP::Parser:

Collaboration graph
[legend]

Public Member Functions

 Parser ()
 create a new parser with default context. create a parser with "explicit" metagrammar dialect, " \r\t\n" whitespaces, and input from stdin.
 ~Parser ()
 delete an instance of a parser
const char * getGrammar () const
ParsersetGrammar (const char *gs)
const char * getWhitespace () const
ParsersetWhitespace (const char *ws)
ParsersetWhitespaceRegexp (const char *wsre)
AstNodegetGrammarAst () const
ParsersetGrammarAST (const AstNode *gast)
const char * getSourceFile () const
const char * getSourceBuffer () const
unsigned int getSourceBufferLength () const
ParsersetSourceFile (const char *fnam)
ParsersetSourceBuffer (const char *buf, const unsigned int len)
bool parse ()
bool parseAsGrammar ()
bool parsedOK () const
AstNodegetOutput () const
int getErrorCol () const
int getErrorRow () const
const char * getError () const
tinyap_t getHandle () const

Static Public Member Functions

static ParserNew ()
 create a new parser with default context. create a parser with "explicit" metagrammar dialect, " \r\t\n" whitespaces, and input from stdin. this call may be used to chain setter calls.

Detailed Description

Definition at line 379 of file tinyap.h.


Constructor & Destructor Documentation

TinyaP::Parser::Parser (  )  [inline]

create a new parser with default context. create a parser with "explicit" metagrammar dialect, " \r\t\n" whitespaces, and input from stdin.

Definition at line 383 of file tinyap.h.

TinyaP::Parser::~Parser (  )  [inline]

delete an instance of a parser

Definition at line 393 of file tinyap.h.


Member Function Documentation

static Parser& TinyaP::Parser::New (  )  [inline, static]

create a new parser with default context. create a parser with "explicit" metagrammar dialect, " \r\t\n" whitespaces, and input from stdin. this call may be used to chain setter calls.

Definition at line 389 of file tinyap.h.

const char* TinyaP::Parser::getGrammar (  )  const [inline]

Definition at line 400 of file tinyap.h.

References tinyap_get_grammar().

Here is the call graph for this function:

Parser& TinyaP::Parser::setGrammar ( const char *  gs  )  [inline]

Definition at line 403 of file tinyap.h.

References tinyap_get_grammar_ast(), and tinyap_set_grammar().

Here is the call graph for this function:

const char* TinyaP::Parser::getWhitespace (  )  const [inline]

Definition at line 411 of file tinyap.h.

References tinyap_get_whitespace().

Here is the call graph for this function:

Parser& TinyaP::Parser::setWhitespace ( const char *  ws  )  [inline]

Definition at line 414 of file tinyap.h.

References tinyap_set_whitespace().

Here is the call graph for this function:

Parser& TinyaP::Parser::setWhitespaceRegexp ( const char *  wsre  )  [inline]

Definition at line 417 of file tinyap.h.

References tinyap_set_whitespace_regexp().

Here is the call graph for this function:

AstNode* TinyaP::Parser::getGrammarAst (  )  const [inline]

Definition at line 420 of file tinyap.h.

Parser& TinyaP::Parser::setGrammarAST ( const AstNode gast  )  [inline]

Definition at line 423 of file tinyap.h.

References TinyaP::AstNode::getHandle(), and tinyap_set_grammar_ast().

Here is the call graph for this function:

const char* TinyaP::Parser::getSourceFile (  )  const [inline]

Definition at line 431 of file tinyap.h.

References tinyap_get_source_file().

Here is the call graph for this function:

const char* TinyaP::Parser::getSourceBuffer (  )  const [inline]

Definition at line 434 of file tinyap.h.

References tinyap_get_source_buffer().

Here is the call graph for this function:

unsigned int TinyaP::Parser::getSourceBufferLength (  )  const [inline]

Definition at line 437 of file tinyap.h.

References tinyap_get_source_buffer_length().

Here is the call graph for this function:

Parser& TinyaP::Parser::setSourceFile ( const char *  fnam  )  [inline]

Definition at line 440 of file tinyap.h.

References tinyap_set_source_file().

Here is the call graph for this function:

Parser& TinyaP::Parser::setSourceBuffer ( const char *  buf,
const unsigned int  len 
) [inline]

Definition at line 443 of file tinyap.h.

References tinyap_set_source_buffer().

Here is the call graph for this function:

bool TinyaP::Parser::parse (  )  [inline]

Definition at line 446 of file tinyap.h.

References tinyap_get_output(), tinyap_parse(), and tinyap_parsed_ok().

Here is the call graph for this function:

bool TinyaP::Parser::parseAsGrammar (  )  [inline]

Definition at line 454 of file tinyap.h.

References tinyap_get_grammar_ast(), tinyap_get_output(), tinyap_parse_as_grammar(), and tinyap_parsed_ok().

Here is the call graph for this function:

bool TinyaP::Parser::parsedOK (  )  const [inline]

Definition at line 466 of file tinyap.h.

References tinyap_parsed_ok().

Here is the call graph for this function:

AstNode* TinyaP::Parser::getOutput (  )  const [inline]

Definition at line 469 of file tinyap.h.

int TinyaP::Parser::getErrorCol (  )  const [inline]

Definition at line 472 of file tinyap.h.

References tinyap_get_error_col().

Here is the call graph for this function:

int TinyaP::Parser::getErrorRow (  )  const [inline]

Definition at line 475 of file tinyap.h.

References tinyap_get_error_row().

Here is the call graph for this function:

const char* TinyaP::Parser::getError (  )  const [inline]

Definition at line 478 of file tinyap.h.

References tinyap_get_error().

Here is the call graph for this function:

tinyap_t TinyaP::Parser::getHandle (  )  const [inline]

Definition at line 481 of file tinyap.h.


The documentation for this class was generated from the following file:
Generated on Sun May 11 14:32:44 2008 for TINYAP by  doxygen 1.5.3