26#ifndef CASA_JSONPARSER_H
27#define CASA_JSONPARSER_H
30#include <casacore/casa/BasicSL/String.h>
31#include <casacore/casa/Exceptions/Error.h>
103 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 String removeEscapes(const String &in)
Remove all possible escape characters and convert as needed (including \uxxxx).
static int & position()
Give the current position (for read or update).
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.