cprover
json_parser.h File Reference
#include <cassert>
#include <stack>
#include <util/parser.h>
#include <util/json.h>
Include dependency graph for json_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  json_parsert
 

Functions

int yyjsonparse ()
 
void yyjsonrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
int yyjsonerror (const std::string &error)
 
bool parse_json (std::istream &in, const std::string &filename, message_handlert &message_handler, jsont &dest)
 
bool parse_json (const std::string &filename, message_handlert &message_handler, jsont &dest)
 

Variables

json_parsert json_parser
 

Function Documentation

◆ parse_json() [1/2]

◆ parse_json() [2/2]

bool parse_json ( const std::string &  filename,
message_handlert message_handler,
jsont dest 
)

Definition at line 40 of file json_parser.cpp.

References message_handler, and parse_json().

◆ yyjsonerror()

int yyjsonerror ( const std::string &  error)

Definition at line 125 of file json_y.tab.cpp.

References json_parser, parsert::parse_error(), and yyjsontext.

◆ yyjsonparse()

int yyjsonparse ( void  )

Definition at line 1054 of file json_y.tab.cpp.

Referenced by json_parsert::parse().

◆ yyjsonrestart()

void yyjsonrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1246 of file json_lex.yy.cpp.

References YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyjson_create_buffer(), yyjson_init_buffer(), yyjson_load_buffer_state(), yyjsonensure_buffer_stack(), and yyjsonin.

Referenced by json_parsert::clear(), and yy_get_next_buffer().

Variable Documentation

◆ json_parser

json_parsert json_parser

Definition at line 13 of file json_parser.cpp.

Referenced by parse_json(), yyjsonerror(), and yyjsonparse().