deepfold.runner.parser.Lexer

class deepfold.runner.parser.Lexer(debug=False, **kwargs)[source]
__init__(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

states

t_DECIMAL_POINT

t_DIGITS

t_E

t_FALSE

t_MINUS

t_NAME_SEPARATOR

t_NULL

t_PLUS

t_SEMICOLON

t_TRUE

t_VALUE_SEPARATOR

t_ZERO

t_escaped_ignore

t_graph_VALUE_SEPARATOR

t_graph_ignore

t_ignore

t_stoi_ignore

t_string_ignore

tokens