cprover
Loading...
Searching...
No Matches
json_parsert Class Reference

#include <json_parser.h>

Inheritance diagram for json_parsert:
Collaboration diagram for json_parsert:

Public Types

typedef std::stack< jsont, std::vector< jsont > > stackt

Public Member Functions

 json_parsert (message_handlert &message_handler)
jsonttop ()
bool parse () override
void push (const jsont &x)
void pop (jsont &dest)
Public Member Functions inherited from parsert
 parsert (message_handlert &message_handler)
virtual ~parsert ()
bool read (char &ch)
bool eof ()
void parse_error (const std::string &message, const std::string &before)
void inc_line_no ()
void set_line_no (unsigned _line_no)
void set_file (const irep_idt &file)
irep_idt get_file () const
unsigned get_line_no () const
unsigned get_column () const
void set_column (unsigned _column)
const source_locationtsource_location ()
void set_source_location (exprt &e)
void set_function (const irep_idt &function)
void advance_column (unsigned token_width)

Public Attributes

stackt stack
Public Attributes inherited from parsert
std::istream * in
std::string this_line
std::string last_line
std::vector< exprtstack

Additional Inherited Members

Protected Attributes inherited from parsert
messaget log
source_locationt _source_location
unsigned line_no
unsigned previous_line_no
unsigned column

Detailed Description

Definition at line 18 of file json_parser.h.

Member Typedef Documentation

◆ stackt

typedef std::stack<jsont, std::vector<jsont> > json_parsert::stackt

Definition at line 26 of file json_parser.h.

Constructor & Destructor Documentation

◆ json_parsert()

json_parsert::json_parsert ( message_handlert & message_handler)
inlineexplicit

Definition at line 21 of file json_parser.h.

Member Function Documentation

◆ parse()

bool json_parsert::parse ( )
overridevirtual

Implements parsert.

Definition at line 17 of file json_parser.cpp.

◆ pop()

void json_parsert::pop ( jsont & dest)
inline

Definition at line 38 of file json_parser.h.

◆ push()

void json_parsert::push ( const jsont & x)
inline

Definition at line 33 of file json_parser.h.

◆ top()

jsont & json_parsert::top ( )
inline

Definition at line 29 of file json_parser.h.

Member Data Documentation

◆ stack

stackt json_parsert::stack

Definition at line 27 of file json_parser.h.


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