OmniSciDB
c1a53651b2
|
Public Member Functions | |
def | __init__ |
def | tokens |
def | is_at_end |
def | current_token |
def | advance |
def | expect |
def | consume |
def | current_pos |
def | raise_parser_error |
def | match |
def | lookahead |
def | parse_udtf |
def | parse_args |
def | parse_arg |
def | parse_type |
def | parse_composed |
def | parse_primitive |
def | parse_templates |
def | parse_template |
def | parse_annotation |
def | parse_identifier |
def | parse_string |
def | parse_number |
def | parse |
Public Attributes | |
line | |
Private Attributes | |
_tokens | |
_curr | |
Definition at line 1285 of file generate_TableFunctionsFactory_init.py.
def generate_TableFunctionsFactory_init.Parser.__init__ | ( | self, | |
line | |||
) |
Definition at line 1286 of file generate_TableFunctionsFactory_init.py.
def generate_TableFunctionsFactory_init.Parser.advance | ( | self | ) |
Definition at line 1301 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr.
Referenced by generate_TableFunctionsFactory_init.Parser.consume(), and generate_TableFunctionsFactory_init.Parser.expect().
def generate_TableFunctionsFactory_init.Parser.consume | ( | self, | |
expected_type | |||
) |
consumes the current token iff its type matches the expected_type. Otherwise, an error is raised
Definition at line 1315 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Tokenize._tokens, generate_TableFunctionsFactory_init.Parser._tokens, generate_TableFunctionsFactory_init.Tokenize.advance(), generate_TableFunctionsFactory_init.Parser.advance(), anonymous_namespace{RelAlgDag.cpp}::RANodeIterator.advance(), generate_TableFunctionsFactory_init.Tokenize.current_token(), generate_TableFunctionsFactory_init.Parser.current_token(), and generate_TableFunctionsFactory_init.Parser.raise_parser_error().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_args(), generate_TableFunctionsFactory_init.Parser.parse_composed(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), generate_TableFunctionsFactory_init.Parser.parse_number(), generate_TableFunctionsFactory_init.Parser.parse_string(), generate_TableFunctionsFactory_init.Parser.parse_template(), generate_TableFunctionsFactory_init.Parser.parse_templates(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.current_pos | ( | self | ) |
Definition at line 1331 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr.
Referenced by generate_TableFunctionsFactory_init.Parser.raise_parser_error().
def generate_TableFunctionsFactory_init.Parser.current_token | ( | self | ) |
Definition at line 1298 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Tokenize._tokens, and generate_TableFunctionsFactory_init.Parser._tokens.
Referenced by generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Parser.expect(), generate_TableFunctionsFactory_init.Parser.match(), and generate_TableFunctionsFactory_init.Parser.raise_parser_error().
def generate_TableFunctionsFactory_init.Parser.expect | ( | self, | |
expected_type | |||
) |
Definition at line 1304 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Tokenize._tokens, generate_TableFunctionsFactory_init.Parser._tokens, generate_TableFunctionsFactory_init.Tokenize.advance(), generate_TableFunctionsFactory_init.Parser.advance(), anonymous_namespace{RelAlgDag.cpp}::RANodeIterator.advance(), generate_TableFunctionsFactory_init.Tokenize.current_token(), and generate_TableFunctionsFactory_init.Parser.current_token().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.is_at_end | ( | self | ) |
Definition at line 1295 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Tokenize._tokens, and generate_TableFunctionsFactory_init.Parser._tokens.
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_args(), generate_TableFunctionsFactory_init.Parser.parse_templates(), generate_TableFunctionsFactory_init.Parser.parse_type(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.lookahead | ( | self | ) |
Definition at line 1350 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Tokenize._tokens, and generate_TableFunctionsFactory_init.Parser._tokens.
Referenced by generate_TableFunctionsFactory_init.Parser.parse_arg().
def generate_TableFunctionsFactory_init.Parser.match | ( | self, | |
expected_type | |||
) |
Definition at line 1346 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Tokenize.current_token(), and generate_TableFunctionsFactory_init.Parser.current_token().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_args(), generate_TableFunctionsFactory_init.Parser.parse_composed(), generate_TableFunctionsFactory_init.Parser.parse_primitive(), generate_TableFunctionsFactory_init.Parser.parse_template(), generate_TableFunctionsFactory_init.Parser.parse_templates(), generate_TableFunctionsFactory_init.Parser.parse_type(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse | ( | self | ) |
fmt: off udtf: IDENTIFIER "(" (args)? ")" ("|" annotation)* "->" args ("," templates)? ("|" "output_row_size" "=" primitive)? args: arg ("," arg)* arg: type IDENTIFIER? ("|" annotation)* type: composed | primitive composed: "Cursor" "<" arg ("," arg)* ">" | IDENTIFIER "<" type ("," type)* ">" primitive: IDENTIFIER | NUMBER | STRING annotation: IDENTIFIER "=" IDENTIFIER ("<" NUMBER ("," NUMBER) ">")? | IDENTIFIER "=" "[" PRIMITIVE? ("," PRIMITIVE)* "]" | "require" "=" STRING templates: template ("," template) template: IDENTIFIER "=" "[" IDENTIFIER ("," IDENTIFIER)* "]" IDENTIFIER: [A-Za-z_][A-Za-z0-9_]* NUMBER: [0-9]+ STRING: \".*?\" fmt: on
Definition at line 1611 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_annotation | ( | self | ) |
fmt: off annotation: IDENTIFIER "=" IDENTIFIER ("<" NUMBER ("," NUMBER) ">")? | IDENTIFIER "=" "[" PRIMITIVE? ("," PRIMITIVE)* "]" | "require" "=" STRING fmt: on
Definition at line 1541 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), generate_TableFunctionsFactory_init.Parser.parse_number(), generate_TableFunctionsFactory_init.Parser.parse_primitive(), and generate_TableFunctionsFactory_init.Parser.parse_string().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_arg(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_arg | ( | self | ) |
fmt: off arg: type IDENTIFIER? ("|" annotation)* fmt: on
Definition at line 1423 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Tokenize.lookahead(), generate_TableFunctionsFactory_init.Parser.lookahead(), generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), and generate_TableFunctionsFactory_init.Parser.parse_type().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_args(), and generate_TableFunctionsFactory_init.Parser.parse_composed().
def generate_TableFunctionsFactory_init.Parser.parse_args | ( | self | ) |
fmt: off args: arg IDENTIFIER ("," arg)* fmt: on
Definition at line 1401 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_arg(), and generate_TableFunctionsFactory_init.Parser.parse_type().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_composed | ( | self | ) |
fmt: off composed: "Cursor" "<" arg ("," arg)* ">" | IDENTIFIER "<" type ("," type)* ">" fmt: on
Definition at line 1467 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.is_identifier_cursor(), generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), and generate_TableFunctionsFactory_init.Parser.parse_type().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_type().
def generate_TableFunctionsFactory_init.Parser.parse_identifier | ( | self | ) |
fmt: off IDENTIFIER: [A-Za-z_][A-Za-z0-9_]* fmt: on
Definition at line 1581 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_composed(), generate_TableFunctionsFactory_init.Parser.parse_primitive(), generate_TableFunctionsFactory_init.Parser.parse_template(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_number | ( | self | ) |
fmt: off NUMBER: [0-9]+ fmt: on
Definition at line 1601 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), and generate_TableFunctionsFactory_init.Parser.parse_primitive().
def generate_TableFunctionsFactory_init.Parser.parse_primitive | ( | self | ) |
fmt: off primitive: IDENTIFIER | NUMBER | STRING fmt: on
Definition at line 1490 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), generate_TableFunctionsFactory_init.Parser.parse_number(), generate_TableFunctionsFactory_init.Parser.parse_string(), and generate_TableFunctionsFactory_init.Parser.raise_parser_error().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_type(), and generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_string | ( | self | ) |
fmt: off STRING: \".*?\" fmt: on
Definition at line 1591 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_annotation(), and generate_TableFunctionsFactory_init.Parser.parse_primitive().
def generate_TableFunctionsFactory_init.Parser.parse_template | ( | self | ) |
fmt: off template: IDENTIFIER "=" "[" IDENTIFIER ("," IDENTIFIER)* "]" fmt: on
Definition at line 1523 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Parser.match(), and generate_TableFunctionsFactory_init.Parser.parse_identifier().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_templates().
def generate_TableFunctionsFactory_init.Parser.parse_templates | ( | self | ) |
fmt: off templates: template ("," template)* fmt: on
Definition at line 1509 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.match(), and generate_TableFunctionsFactory_init.Parser.parse_template().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_udtf().
def generate_TableFunctionsFactory_init.Parser.parse_type | ( | self | ) |
fmt: off type: composed | primitive fmt: on
Definition at line 1447 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser._curr, generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_composed(), and generate_TableFunctionsFactory_init.Parser.parse_primitive().
Referenced by generate_TableFunctionsFactory_init.Parser.parse_arg(), generate_TableFunctionsFactory_init.Parser.parse_args(), and generate_TableFunctionsFactory_init.Parser.parse_composed().
def generate_TableFunctionsFactory_init.Parser.parse_udtf | ( | self | ) |
fmt: off udtf: IDENTIFIER "(" (args)? ")" ("|" annotation)* "->" args ("," templates)? ("|" "output_row_size" "=" primitive)? fmt: on
Definition at line 1353 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Parser.expect(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.UdtfNode.line, generate_TableFunctionsFactory_init.Parser.line, generate_TableFunctionsFactory_init.Parser.match(), generate_TableFunctionsFactory_init.Parser.parse_annotation(), generate_TableFunctionsFactory_init.Parser.parse_args(), generate_TableFunctionsFactory_init.Parser.parse_identifier(), generate_TableFunctionsFactory_init.Parser.parse_primitive(), and generate_TableFunctionsFactory_init.Parser.parse_templates().
Referenced by generate_TableFunctionsFactory_init.Parser.parse().
def generate_TableFunctionsFactory_init.Parser.raise_parser_error | ( | self, | |
msg = None |
|||
) |
Definition at line 1334 of file generate_TableFunctionsFactory_init.py.
References ChunkIter.current_pos, generate_TableFunctionsFactory_init.Parser.current_pos(), generate_TableFunctionsFactory_init.Tokenize.current_token(), generate_TableFunctionsFactory_init.Parser.current_token(), generate_TableFunctionsFactory_init.Tokenize.tokens(), and generate_TableFunctionsFactory_init.Parser.tokens().
Referenced by generate_TableFunctionsFactory_init.Parser.consume(), and generate_TableFunctionsFactory_init.Parser.parse_primitive().
def generate_TableFunctionsFactory_init.Parser.tokens | ( | self | ) |
Definition at line 1292 of file generate_TableFunctionsFactory_init.py.
References generate_TableFunctionsFactory_init.Tokenize._tokens, and generate_TableFunctionsFactory_init.Parser._tokens.
Referenced by generate_TableFunctionsFactory_init.Parser.raise_parser_error().
|
private |
Definition at line 1288 of file generate_TableFunctionsFactory_init.py.
Referenced by generate_TableFunctionsFactory_init.Parser.advance(), generate_TableFunctionsFactory_init.Parser.current_pos(), generate_TableFunctionsFactory_init.Parser.current_token(), generate_TableFunctionsFactory_init.Parser.expect(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.lookahead(), generate_TableFunctionsFactory_init.Parser.parse(), generate_TableFunctionsFactory_init.Parser.parse_args(), and generate_TableFunctionsFactory_init.Parser.parse_type().
|
private |
Definition at line 1287 of file generate_TableFunctionsFactory_init.py.
Referenced by generate_TableFunctionsFactory_init.Parser.consume(), generate_TableFunctionsFactory_init.Parser.current_token(), generate_TableFunctionsFactory_init.Parser.expect(), generate_TableFunctionsFactory_init.Parser.is_at_end(), generate_TableFunctionsFactory_init.Parser.lookahead(), and generate_TableFunctionsFactory_init.Parser.tokens().
generate_TableFunctionsFactory_init.Parser.line |
Definition at line 1289 of file generate_TableFunctionsFactory_init.py.
Referenced by generate_TableFunctionsFactory_init.Tokenize.add_token(), generate_TableFunctionsFactory_init.Tokenize.current_token(), generate_TableFunctionsFactory_init.Tokenize.is_at_end(), generate_TableFunctionsFactory_init.Tokenize.lookahead(), generate_TableFunctionsFactory_init.Parser.parse_udtf(), generate_TableFunctionsFactory_init.Tokenize.peek(), and generate_TableFunctionsFactory_init.Tokenize.raise_tokenize_error().