radb.RAParser module

class radb.RAParser.RAParser(input: antlr4.BufferedTokenStream.TokenStream, output: TextIO = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]

Bases: antlr4.Parser.Parser

AGGR = 25
AND = 11
ARG_L = 35
ARG_R = 36
class AggrExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

AGGR()[source]
ARG_L()[source]
ARG_R()[source]
COLON()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
listOfValExprs(i: Optional[int] = None)[source]
parser
relExpr()[source]
class AndExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

AND()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
class AttrRefContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

DOT()[source]
ID(i: Optional[int] = None)[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
CLEAR = 46
COLON = 38
COMMA = 27
COMMENT = 2
CONCAT = 32
CROSS = 21
class ClearCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

CLEAR()[source]
FORCE()[source]
ID()[source]
STAR()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class CommandContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

copyFrom(ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]
getRuleIndex()[source]
parser
class CompareExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

EQ()[source]
GE()[source]
GT()[source]
LE()[source]
LT()[source]
NE()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
class ConcatExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

CONCAT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
class CrossExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

CROSS()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr(i: Optional[int] = None)[source]
DIFF = 23
DOT = 26
class DefinitionContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

GETS()[source]
ID()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
getRuleIndex()[source]
parser
relExpr()[source]
class DiffExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

DIFF()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr(i: Optional[int] = None)[source]
EOF = -1
EQ = 43
FORCE = 5
class FuncExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

ID()[source]
PAREN_L()[source]
PAREN_R()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
listOfValExprs()[source]
parser
GE = 41
GETS = 37
GT = 44
HELP = 49
class HelpCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

HELP()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
ID = 16
INTERSECT = 24
IS = 8
IS_NOT_NULL = 7
IS_NULL = 6
class IntersectExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

INTERSECT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr(i: Optional[int] = None)[source]
class IsNotNullExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

IS_NOT_NULL()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr()[source]
class IsNullExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

IS_NULL()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr()[source]
JOIN = 20
class JoinExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

ARG_L()[source]
ARG_R()[source]
JOIN()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr(i: Optional[int] = None)[source]
valExpr()[source]
LE = 39
LIKE = 10
LINE_COMMENT = 3
LIST = 45
LT = 42
class LikeExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

LIKE()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
class ListCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

LIST()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class ListOfIDsContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

COMMA()[source]
ID()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
getRuleIndex()[source]
listOfIDs()[source]
parser
class ListOfValExprsContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

COMMA()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
getRuleIndex()[source]
listOfValExprs()[source]
parser
valExpr()[source]
MINUS = 31
class MultDivExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

SLASH()[source]
STAR()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
NE = 40
NOT = 13
NULL = 9
NUMBER = 15
class NotExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

NOT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr()[source]
class NumberLiteralValExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

NUMBER()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
OR = 12
class OrExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

OR()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
PAREN_L = 33
PAREN_R = 34
PLUS = 30
PROJECT = 18
class PlusMinusExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

MINUS()[source]
PLUS()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr(i: Optional[int] = None)[source]
class ProgramContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

EOF()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
getRuleIndex()[source]
parser
statement(i: Optional[int] = None)[source]
class ProjectExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

ARG_L()[source]
ARG_R()[source]
PROJECT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
listOfValExprs()[source]
parser
relExpr()[source]
QUIT = 50
class QuitCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

QUIT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
RENAME = 17
RULE_command = 5
RULE_definition = 4
RULE_listOfIDs = 2
RULE_listOfValExprs = 1
RULE_program = 7
RULE_relExpr = 3
RULE_statement = 6
RULE_valExpr = 0
class RelExprContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

copyFrom(ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]
getRuleIndex()[source]
parser
class RelExprParenthesizedContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

PAREN_L()[source]
PAREN_R()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr()[source]
class RelRefContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

ID()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class RenameExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

ARG_L()[source]
ARG_R()[source]
COLON()[source]
ID()[source]
RENAME()[source]
STAR()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
listOfIDs()[source]
parser
relExpr()[source]
SAVE = 47
SELECT = 19
SLASH = 29
SOURCE = 48
SQLEXEC = 51
SQLEXEC_TEXT = 52
STAR = 28
STRING = 14
class SaveCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

FORCE()[source]
ID()[source]
SAVE()[source]
STAR()[source]
STRING()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class SelectExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

ARG_L()[source]
ARG_R()[source]
SELECT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr()[source]
valExpr()[source]
class SourceCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

SOURCE()[source]
STRING()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class SqlexecCommandContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.CommandContext

SQLEXEC()[source]
SQLEXEC_TEXT()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
class StatementContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

TERMINATOR()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
command()[source]
definition()[source]
getRuleIndex()[source]
parser
relExpr()[source]
class StringLiteralValExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

STRING()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
TERMINATOR = 4
UNION = 22
class UnionExprContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.RelExprContext

UNION()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
relExpr(i: Optional[int] = None)[source]
class ValExprContext(parser, parent: Optional[antlr4.ParserRuleContext.ParserRuleContext] = None, invokingState: int = - 1)[source]

Bases: antlr4.ParserRuleContext.ParserRuleContext

copyFrom(ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]
getRuleIndex()[source]
parser
class ValExprParenthesizedContext(parser, ctx: antlr4.ParserRuleContext.ParserRuleContext)[source]

Bases: radb.RAParser.RAParser.ValExprContext

PAREN_L()[source]
PAREN_R()[source]
accept(visitor: antlr4.tree.Tree.ParseTreeVisitor)[source]
parser
valExpr()[source]
WS = 1
atn = <antlr4.atn.ATN.ATN object>
buildParseTrees
command()[source]
decisionsToDFA = [<antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>, <antlr4.dfa.DFA.DFA object>]
definition()[source]
grammarFileName = 'RAParser.g4'
listOfIDs()[source]
listOfValExprs()[source]
literalNames = ['<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', "';'", "'!'", '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', '<INVALID>', "'\\rename'", "'\\project'", "'\\select'", "'\\join'", "'\\cross'", "'\\union'", "'\\diff'", "'\\intersect'", "'\\aggr'", "'.'", "','", "'*'", "'/'", "'+'", "'-'", "'||'", "'('", "')'", "'_{'", "'}'", "':-'", "':'", "'<='", "'<>'", "'>='", "'<'", "'='", "'>'", "'\\list'", "'\\clear'", "'\\save'", "'\\source'", "'\\help'", "'\\quit'", "'\\sqlexec'"]
program()[source]
relExpr(_p: int = 0)[source]
relExpr_sempred(localctx: radb.RAParser.RAParser.RelExprContext, predIndex: int)[source]
ruleNames = ['valExpr', 'listOfValExprs', 'listOfIDs', 'relExpr', 'definition', 'command', 'statement', 'program']
sempred(localctx: antlr4.RuleContext.RuleContext, ruleIndex: int, predIndex: int)[source]
sharedContextCache = <antlr4.PredictionContext.PredictionContextCache object>
statement()[source]
symbolicNames = ['<INVALID>', 'WS', 'COMMENT', 'LINE_COMMENT', 'TERMINATOR', 'FORCE', 'IS_NULL', 'IS_NOT_NULL', 'IS', 'NULL', 'LIKE', 'AND', 'OR', 'NOT', 'STRING', 'NUMBER', 'ID', 'RENAME', 'PROJECT', 'SELECT', 'JOIN', 'CROSS', 'UNION', 'DIFF', 'INTERSECT', 'AGGR', 'DOT', 'COMMA', 'STAR', 'SLASH', 'PLUS', 'MINUS', 'CONCAT', 'PAREN_L', 'PAREN_R', 'ARG_L', 'ARG_R', 'GETS', 'COLON', 'LE', 'NE', 'GE', 'LT', 'EQ', 'GT', 'LIST', 'CLEAR', 'SAVE', 'SOURCE', 'HELP', 'QUIT', 'SQLEXEC', 'SQLEXEC_TEXT']
valExpr(_p: int = 0)[source]
valExpr_sempred(localctx: radb.RAParser.RAParser.ValExprContext, predIndex: int)[source]
radb.RAParser.serializedATN()[source]