QJson - a Qt based library for mapping JSON data to QVariant objects

QJson home page

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Members

Classes | Public Types | Public Member Functions | List of all members
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 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.

References yy::location::end, and yy::position::line.

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

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

- /usr/obj/ports/qjson-0.8.1/qjson-0.8.1/src/json_parser.hh
- /usr/obj/ports/qjson-0.8.1/qjson-0.8.1/src/json_parser.cc

| hosts this site. |  | Send comments to: QJson Developers