QJson home page
yy::json_parser Class Reference

A Bison parser. More...

#include <json_parser.hh>

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 90 of file json_parser.hh.

Member Function Documentation

◆ parse()

int yy::json_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.

$$.

$.

Definition at line 296 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