mgf::Parser Class Reference

A Bison parser. More...

#include <Parser.h>

List of all members.

Classes

union  semantic_type
 Symbol semantic values. More...
struct  token
 Tokens. More...

Public Types

typedef location location_type
 Symbol locations.
typedef token::yytokentype token_type
 Token type.
typedef int debug_level_type
 Type for debugging levels.

Public Member Functions

 Parser (Driver &driver_yyarg)
 Build a parser object.
virtual int parse ()
 Parse.
std::ostream & debug_stream () const
 The current debugging stream.
void set_debug_stream (std::ostream &)
 Set the current debugging stream.
debug_level_type debug_level () const
 The current debugging level.
void set_debug_level (debug_level_type l)
 Set the current debugging level.

Detailed Description

A Bison parser.


Member Typedef Documentation

Type for debugging levels.

typedef location mgf::Parser::location_type

Symbol locations.

typedef token::yytokentype mgf::Parser::token_type

Token type.


Constructor & Destructor Documentation

mgf::Parser::Parser ( Driver &  driver_yyarg  ) 

Build a parser object.


Member Function Documentation

debug_level_type mgf::Parser::debug_level (  )  const

The current debugging level.

std::ostream& mgf::Parser::debug_stream (  )  const

The current debugging stream.

int mgf::Parser::parse (  )  [virtual]

Parse.

Returns:
0 iff parsing succeeded.

Lookahead and lookahead in internal form.

Semantic value of the lookahead.

Location of the lookahead.

The locations where the error started and ended.

$$.

$.

void mgf::Parser::set_debug_level ( debug_level_type  l  ) 

Set the current debugging level.

void mgf::Parser::set_debug_stream ( std::ostream &   ) 

Set the current debugging stream.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs

Generated on Thu Nov 24 07:44:09 2011 for libmgf by  doxygen 1.6.1