Class generate_TableFunctionsFactory_init::Parser

class Parser

Public Functions

def generate_TableFunctionsFactory_init.Parser.__init__()
def generate_TableFunctionsFactory_init.Parser.tokens()
def generate_TableFunctionsFactory_init.Parser.is_at_end()
def generate_TableFunctionsFactory_init.Parser.current_token()
def generate_TableFunctionsFactory_init.Parser.advance()
def generate_TableFunctionsFactory_init.Parser.expect()
def generate_TableFunctionsFactory_init.Parser.consume()

consumes the current token iff its type matches the
expected_type. Otherwise, an error is raised

def generate_TableFunctionsFactory_init.Parser.current_pos()
def generate_TableFunctionsFactory_init.Parser.raise_parser_error()
def generate_TableFunctionsFactory_init.Parser.match()
def generate_TableFunctionsFactory_init.Parser.lookahead()
def generate_TableFunctionsFactory_init.Parser.parse_udtf()

fmt: off

udtf: IDENTIFIER "(" (args)? ")" ("|" annotation)* "->" args ("," templates)? ("|" "output_row_size" "=" primitive)?

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_args()

fmt: off

args: arg IDENTIFIER ("," arg)*

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_arg()

fmt: off

arg: type IDENTIFIER? ("|" annotation)*

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_type()

fmt: off

type: composed
    | primitive

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_composed()

fmt: off

composed: "Cursor" "<" arg ("," arg)* ">"
| IDENTIFIER "<" type ("," type)* ">"

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_primitive()

fmt: off

primitive: IDENTIFIER
 | NUMBER
 | STRING

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_templates()

fmt: off

templates: template ("," template)*

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_template()

fmt: off

template: IDENTIFIER "=" "[" IDENTIFIER ("," IDENTIFIER)* "]"

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_annotation()

fmt: off

annotation: IDENTIFIER "=" IDENTIFIER ("<" NUMBER ("," NUMBER) ">")?
  | IDENTIFIER "=" "[" PRIMITIVE? ("," PRIMITIVE)* "]"
  | "require" "=" STRING

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_identifier()

fmt: off

IDENTIFIER: [A-Za-z_][A-Za-z0-9_]*

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_string()

fmt: off

STRING: \".*?\"

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse_number()

fmt: off

NUMBER: [0-9]+

fmt: on

def generate_TableFunctionsFactory_init.Parser.parse()

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

Public Members

generate_TableFunctionsFactory_init.Parser::line

Private Members

generate_TableFunctionsFactory_init.Parser::_tokens
generate_TableFunctionsFactory_init.Parser::_curr