28 #ifndef CASA_JSONPARSER_H
29 #define CASA_JSONPARSER_H
32 #include <casacore/casa/BasicSL/String.h>
33 #include <casacore/casa/Exceptions/Error.h>
105 static int input (
char* buf,
int max_size);
static JsonKVMap * theirJsonMap
static JsonKVMap parse(const String &command)
Parse the command in the given string and return the resulting map.
static int input(char *buf, int max_size)
Give the next chunk of input for the scanner.
static const char * theirCommand
static void setMap(JsonKVMap *map)
Let the parser set the final KeyValueMap.
static int & position()
Give the current position (for read or update).
static String removeEscapes(const String &in)
Remove all possible escape characters and convert as needed (including \uxxxx).
static JsonKVMap parseFile(const String &fileName)
Parse the given file and return the resulting map.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
void JsonGramerror(const char *)
The global yyerror function for the parser.