JASSv2
Public Member Functions | Static Public Member Functions | List of all members
JASS::parser_unicoil_json Class Reference

Parser for documents from the UniCOIL data in JSON format. More...

#include <parser_unicoil_json.h>

Inheritance diagram for JASS::parser_unicoil_json:
Inheritance graph
[legend]
Collaboration diagram for JASS::parser_unicoil_json:
Collaboration graph
[legend]

Public Member Functions

 parser_unicoil_json ()
 Constructor.
 
virtual ~parser_unicoil_json ()
 Destructor.
 
virtual const class parser::tokenget_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 documentthe_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.
 

Detailed Description

Parser for documents from the UniCOIL data in JSON format.

Member Function Documentation

◆ get_next_token()

virtual const class parser::token& JASS::parser_unicoil_json::get_next_token ( void  )
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!

Returns
A reference to a token object that is valid until either the next call to get_next_token() or the parser is destroyed.

Reimplemented from JASS::parser.


The documentation for this class was generated from the following files: