1#ifndef IR_JSON_PARSER_H_
2#define IR_JSON_PARSER_H_
8#include "lib/big_int_util.h"
9#include "lib/castable.h"
10#include "lib/cstring.h"
11#include "lib/ordered_map.h"
28 operator int()
const {
return int(val); }
37 operator bool()
const {
return val; }
46 JsonString(
const std::string &s) : std::string(s) {}
61 : std::vector<JsonData *>(v) {}
69 bool _hasSrcInfo =
true;
78 std::string get_type()
const;
79 std::string get_filename()
const;
80 std::string get_sourceFragment()
const;
82 int get_column()
const;
84 bool hasSrcInfo() {
return _hasSrcInfo; }
85 void setSrcInfo(
bool value) { _hasSrcInfo = value; }
94std::string getIndent(
int l);
96std::ostream &operator<<(std::ostream &out,
JsonData *json);
97std::istream &operator>>(std::istream &in,
JsonData *&json);
Definition json_parser.h:34
Definition json_parser.h:13
Definition json_parser.h:90
Definition json_parser.h:25
Definition json_parser.h:68
Definition json_parser.h:43
Definition json_parser.h:57
Definition ordered_map.h:30