|
JASSv2
|
Parser for documents from the UniCOIL data in JSON format. More...
#include <parser_unicoil_json.h>


Public Member Functions | |
| parser_unicoil_json () | |
| Constructor. | |
| virtual | ~parser_unicoil_json () |
| Destructor. | |
| virtual const class parser::token & | get_next_token (void) |
| Continue parsing the input looking for the next token. Note that the definition of token here is no the normal JASS definition, ##term (and worse) are considered tokens! More... | |
Public Member Functions inherited from JASS::parser | |
| parser () | |
| Constructor. | |
| virtual | ~parser () |
| Destructor. | |
| virtual void | set_document (const class document &document) |
| Start parsing from the start of this document. More... | |
| virtual void | set_document (const std::string &document) |
| Parse a string (rather than a document). More... | |
Static Public Member Functions | |
| static void | unittest (void) |
| Unit test this class. | |
Static Public Member Functions inherited from JASS::parser | |
| static size_t | unittest_count (const char *string) |
| count the numner of tokens in the given string. More... | |
| static void | unittest (void) |
| Unit test this class. | |
Additional Inherited Members | |
Protected Member Functions inherited from JASS::parser | |
| void | build_unicode_alphabetic_token (uint32_t codepoint, size_t bytes, uint8_t *&buffer_pos, uint8_t *buffer_end) |
| Helper function used to build alphabetic token from UTF-8. More... | |
| void | build_unicode_numeric_token (uint32_t codepoint, size_t bytes, uint8_t *&buffer_pos, uint8_t *buffer_end) |
| Helper function used to build numeric token from UTF-8. More... | |
Protected Attributes inherited from JASS::parser | |
| token | eof_token |
| Sentinal returned when reading past end of document. | |
| const document * | the_document |
| The document that is currently being parsed. | |
| const uint8_t * | current |
| The current location within the document. | |
| const uint8_t * | end_of_document |
| Pointer to the end of the document, used to avoid read past end of buffer. | |
| token | current_token |
| The token that is currently being build. A reference to this is returned when the token is complete. | |
Parser for documents from the UniCOIL data in JSON format.
|
inlinevirtual |
Continue parsing the input looking for the next token. Note that the definition of token here is no the normal JASS definition, ##term (and worse) are considered tokens!
Reimplemented from JASS::parser.
1.8.13