Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/json/Parser.h>
Public Member Functions | |
Parser (Maker &maker) | |
void | parse (string s) |
void | parse (cstring s) |
void | parse (const char *s) |
void | parse (io::InStream &in) |
void | parse (sys::Path path) |
This class provide a simple way to read JSON structured format. It receive a Maker as parameter and the maker methods are called along the parsing of the JSOn text. This should allow top-level implementation of Maker to build back objects and arrays.
Notice that this parser supports a larger set of JSON text than the standard:
|
inline |
References Parser::parse().
Referenced by Parser::parse().
References Parser::parse().
Referenced by Parser::parse().
void parse | ( | io::InStream & | in | ) |
Parse from an input stream.
in | Input stream to use. |
References MessageException::message().
Parser from a file.
path | File path. |
References SystemException::message(), Parser::parse(), and System::readFile().