Classes | |
struct | ResourceParser |
struct | Stream |
struct | StreamFile |
struct | StreamString |
struct | Tag |
struct | Token |
Public Types | |
enum | TokenType { TK_CURLY_BRACKET_OPEN, TK_CURLY_BRACKET_CLOSE, TK_BRACKET_OPEN, TK_BRACKET_CLOSE, TK_PARENTHESIS_OPEN, TK_PARENTHESIS_CLOSE, TK_IDENTIFIER, TK_STRING, TK_NUMBER, TK_COLOR, TK_COLON, TK_COMMA, TK_PERIOD, TK_EQUAL, TK_EOF, TK_ERROR, TK_MAX } |
enum | Expecting { EXPECT_OBJECT, EXPECT_OBJECT_KEY, EXPECT_COLON, EXPECT_OBJECT_VALUE } |
typedef Error(* | ParseResourceFunc) (void *p_self, Stream *p_stream, Ref< Resource > &r_res, int &line, String &r_err_str) |
Static Public Member Functions | |
static Error | parse_tag (Stream *p_stream, int &line, String &r_err_str, Tag &r_tag, ResourceParser *p_res_parser=NULL, bool p_simple_tag=false) |
static Error | parse_tag_assign_eof (Stream *p_stream, int &line, String &r_err_str, Tag &r_tag, String &r_assign, Variant &r_value, ResourceParser *p_res_parser=NULL, bool p_simple_tag=false) |
static Error | parse_value (Token &token, Variant &value, Stream *p_stream, int &line, String &r_err_str, ResourceParser *p_res_parser=NULL) |
static Error | get_token (Stream *p_stream, Token &r_token, int &line, String &r_err_str) |
static Error | parse (Stream *p_stream, Variant &r_ret, String &r_err_str, int &r_err_line, ResourceParser *p_res_parser=NULL) |