QJson home page
Classes | Public Types | Public Member Functions
yy::json_parser Class Reference

A Bison parser. More...

#include <json_parser.hh>

List of all members.

Classes

struct  token
 Tokens. More...

Public Types

typedef YYSTYPE semantic_type
 Symbol semantic values.
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

 json_parser (QJson::ParserPrivate *driver_yyarg)
 Build a parser object.
virtual int 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.

Definition at line 119 of file json_parser.hh.


Member Function Documentation

int yy::json_parser::parse ( )
virtual

Parse.

Returns:
0 iff parsing succeeded.

Look-ahead and look-ahead in internal form.

Semantic value of the look-ahead.

Location of the look-ahead.

The locations where the error started and ended.

$$.

$.

Definition at line 240 of file json_parser.cc.

Referenced by QJson::Parser::parse().


The documentation for this class was generated from the following files:

SourceForge Logo hosts this site. Send comments to:
QJson Developers