deepfold.runner.parser.Lexer¶
- class deepfold.runner.parser.Lexer(debug=False, **kwargs)[source]¶
-
Methods
__init__([debug])t_ANY_error(t)t_BEGIN_ARRAY(t)x5B
t_BEGIN_OBJECT(t)x7B
t_ID(t)t_NEWLINE(t)n+
t_QUOTATION_MARK(t)x22
t_escaped_BACKSPACE_CHAR(t)x62
t_escaped_CARRIAGE_RETURN_CHAR(t)x72
t_escaped_FORM_FEED_CHAR(t)x66
t_escaped_LINE_FEED_CHAR(t)x6E
t_escaped_QUOTATION_MARK(t)x22
t_escaped_REVERSE_SOLIDUS(t)x5C
t_escaped_SOLIDUS(t)x2F
t_escaped_TAB_CHAR(t)x74
t_escaped_UNICODE_HEX(t)x75[x30-x39,x41-x46,x61-x66]{4}
t_graph_BEGIN_EDGE_LIST(t)x5Bx5B
t_graph_EDGE_SEP(t)x2D
t_graph_END_EDGE_LIST(t)x5Dx5D
t_graph_ID(t)t_graph_NEWLINE(t)n+
t_ignore_COMMENT(t)#.*
t_iterable_END_ARRAY(t)x5D
t_iterable_END_OBJECT(t)x7D
t_iterable_NEWLINE(t)n+
t_stoi_DIGITS(t)t_stoi_ID(t)t_stoi_NUM_SYM_SEP(t)x3A
t_stoi_STOI_SEP(t)x2F
t_string_ESCAPE(t)x5C
t_string_QUOTATION_MARK(t)x22
t_string_UNESCAPED(t)[x20-x21,x23-x5B,x5D-xFF]+
tokenize(data, *args, **kwargs)Invoke the lexer on an input string an return the list of tokens.
Attributes
statest_DECIMAL_POINTt_DIGITSt_Et_FALSEt_MINUSt_NAME_SEPARATORt_NULLt_PLUSt_SEMICOLONt_TRUEt_VALUE_SEPARATORt_ZEROt_escaped_ignoret_graph_VALUE_SEPARATORt_graph_ignoret_ignoret_stoi_ignoret_string_ignoretokens