Class AlgParser.ExprVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- io.opsit.explang.parser.alg.AlgParserBaseVisitor<Object>
-
- io.opsit.explang.parser.alg.AlgParser.ExprVisitor
-
- All Implemented Interfaces:
AlgParserVisitor<Object>,org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
- Enclosing class:
- AlgParser
public class AlgParser.ExprVisitor extends AlgParserBaseVisitor<Object>
-
-
Constructor Summary
Constructors Constructor Description ExprVisitor(String srcName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconvertArgList(io.opsit.explang.ASTNList result, io.opsit.explang.ASTNList args)io.opsit.explang.ParseCtxmakePctx(org.antlr.v4.runtime.ParserRuleContext rctx)Make new Parse context on basis of ANTLR parsing information.protected io.opsit.explang.ASTNtransArg(io.opsit.explang.ASTN arg)ObjectvisitAnd_expr(AlgParserParser.And_exprContext ctx)Visit a parse tree produced by theand_exprlabeled alternative inAlgParserParser.expr().ObjectvisitAssign_expr(AlgParserParser.Assign_exprContext ctx)Visit a parse tree produced by theassign_exprlabeled alternative inAlgParserParser.expr().ObjectvisitAssoc_lookup(AlgParserParser.Assoc_lookupContext ctx)Visit a parse tree produced by theassoc_lookuplabeled alternative inAlgParserParser.expr().ObjectvisitAtom_expr(AlgParserParser.Atom_exprContext ctx)Visit a parse tree produced by theatom_exprlabeled alternative inAlgParserParser.expr().ObjectvisitBeblock(AlgParserParser.BeblockContext ctx)Visit a parse tree produced byAlgParserParser.beblock().ObjectvisitBlock(AlgParserParser.BlockContext ctx)Visit a parse tree produced byAlgParserParser.block().ObjectvisitCatchspec(AlgParserParser.CatchspecContext ctx)Visit a parse tree produced byAlgParserParser.catchspec().ObjectvisitChar_expr(AlgParserParser.Char_exprContext ctx)Visit a parse tree produced by thechar_exprlabeled alternative inAlgParserParser.expr().ObjectvisitClzspec(AlgParserParser.ClzspecContext ctx)Visit a parse tree produced byAlgParserParser.clzspec().ObjectvisitDict_expr(AlgParserParser.Dict_exprContext ctx)Parse and transpile dictionary definition (JSON like syntax { x : y, ...}).ObjectvisitDotchain(AlgParserParser.DotchainContext ctx)Parse and transpile static association lookup expression (.).ObjectvisitDwim_matches_expr(AlgParserParser.Dwim_matches_exprContext ctx)Visit a parse tree produced by thedwim_matches_exprlabeled alternative inAlgParserParser.expr().ObjectvisitDwim_search_expr(AlgParserParser.Dwim_search_exprContext ctx)Visit a parse tree produced by thedwim_search_exprlabeled alternative inAlgParserParser.expr().ObjectvisitEquality_expr(AlgParserParser.Equality_exprContext ctx)Visit a parse tree produced by theequality_exprlabeled alternative inAlgParserParser.expr().ObjectvisitExprList(AlgParserParser.ExprListContext ctx)Visit a parse tree produced byAlgParserParser.exprList().ObjectvisitFields_expr(AlgParserParser.Fields_exprContext ctx)Visit a parse tree produced by thefields_exprlabeled alternative inAlgParserParser.expr().ObjectvisitFieldspec(AlgParserParser.FieldspecContext ctx)Visit a parse tree produced byAlgParserParser.fieldspec().ObjectvisitFor_expr(AlgParserParser.For_exprContext ctx)Visit a parse tree produced by thefor_exprlabeled alternative inAlgParserParser.expr().ObjectvisitFspart(AlgParserParser.FspartContext ctx)Visit a parse tree produced byAlgParserParser.fspart().ObjectvisitFuncall_expr(AlgParserParser.Funcall_exprContext ctx)Visit a parse tree produced by thefuncall_exprlabeled alternative inAlgParserParser.expr().ObjectvisitIf_expr(AlgParserParser.If_exprContext ctx)Visit a parse tree produced by theif_exprlabeled alternative inAlgParserParser.expr().ObjectvisitIn_expr(AlgParserParser.In_exprContext ctx)Visit a parse tree produced by thein_exprlabeled alternative inAlgParserParser.expr().ObjectvisitIpol_expr(AlgParserParser.Ipol_exprContext ctx)Visit a parse tree produced by theipol_exprlabeled alternative inAlgParserParser.expr().ObjectvisitLambda(AlgParserParser.LambdaContext ctx)Visit a parse tree produced byAlgParserParser.lambda().ObjectvisitLambdacall_expr(AlgParserParser.Lambdacall_exprContext ctx)Visit a parse tree produced by thelambdacall_exprlabeled alternative inAlgParserParser.expr().ObjectvisitLet_expr(AlgParserParser.Let_exprContext ctx)Visit a parse tree produced by thelet_exprlabeled alternative inAlgParserParser.expr().ObjectvisitMonolambda_expr(AlgParserParser.Monolambda_exprContext ctx)Visit a parse tree produced by themonolambda_exprlabeled alternative inAlgParserParser.expr().ObjectvisitNot_expr(AlgParserParser.Not_exprContext ctx)Visit a parse tree produced by thenot_exprlabeled alternative inAlgParserParser.expr().ObjectvisitNumcomp_expr(AlgParserParser.Numcomp_exprContext ctx)Visit a parse tree produced by thenumcomp_exprlabeled alternative inAlgParserParser.expr().ObjectvisitOptassign(AlgParserParser.OptassignContext ctx)Visit a parse tree produced byAlgParserParser.optassign().ObjectvisitOr_expr(AlgParserParser.Or_exprContext ctx)Visit a parse tree produced by theor_exprlabeled alternative inAlgParserParser.expr().ObjectvisitParen_expr(AlgParserParser.Paren_exprContext ctx)Visit a parse tree produced by theparen_exprlabeled alternative inAlgParserParser.expr().ObjectvisitProduct_expr(AlgParserParser.Product_exprContext ctx)Visit a parse tree produced by theproduct_exprlabeled alternative inAlgParserParser.expr().ObjectvisitQuote_expr(AlgParserParser.Quote_exprContext ctx)Parse and transpile quoted expression (:expr).ObjectvisitReplblock(AlgParserParser.ReplblockContext ctx)Visit a parse tree produced byAlgParserParser.replblock().ObjectvisitReturn_expr(AlgParserParser.Return_exprContext ctx)Visit a parse tree produced by thereturn_exprlabeled alternative inAlgParserParser.expr().ObjectvisitSign_expr(AlgParserParser.Sign_exprContext ctx)Visit a parse tree produced by thesign_exprlabeled alternative inAlgParserParser.expr().ObjectvisitSlambda_expr(AlgParserParser.Slambda_exprContext ctx)Visit a parse tree produced by theslambda_exprlabeled alternative inAlgParserParser.expr().ObjectvisitSum_expr(AlgParserParser.Sum_exprContext ctx)Visit a parse tree produced by thesum_exprlabeled alternative inAlgParserParser.expr().ObjectvisitTh_as_expr(AlgParserParser.Th_as_exprContext ctx)Visit a parse tree produced by theth_as_exprlabeled alternative inAlgParserParser.expr().ObjectvisitTh_at_expr(AlgParserParser.Th_at_exprContext ctx)Visit a parse tree produced by theth_at_exprlabeled alternative inAlgParserParser.expr().ObjectvisitTh_auto_expr(AlgParserParser.Th_auto_exprContext ctx)Visit a parse tree produced by theth_auto_exprlabeled alternative inAlgParserParser.expr().ObjectvisitTry_expr(AlgParserParser.Try_exprContext ctx)Visit a parse tree produced by thetry_exprlabeled alternative inAlgParserParser.expr().ObjectvisitVardecl_expr(AlgParserParser.Vardecl_exprContext ctx)Visit a parse tree produced by thevardecl_exprlabeled alternative inAlgParserParser.expr().ObjectvisitVector_expr(AlgParserParser.Vector_exprContext ctx)Visit a parse tree produced by thevector_exprlabeled alternative inAlgParserParser.expr().ObjectvisitWhile_expr(AlgParserParser.While_exprContext ctx)Visit a parse tree produced by thewhile_exprlabeled alternative inAlgParserParser.expr().-
Methods inherited from class io.opsit.explang.parser.alg.AlgParserBaseVisitor
visitAtom, visitBeblock_expr, visitFsymbol, visitLambda_expr, visitLoopfor, visitVector
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
srcName
protected String srcName
-
-
Constructor Detail
-
ExprVisitor
public ExprVisitor(String srcName)
-
-
Method Detail
-
visitCatchspec
public Object visitCatchspec(AlgParserParser.CatchspecContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.catchspec().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchspecin interfaceAlgParserVisitor<Object>- Overrides:
visitCatchspecin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClzspec
public Object visitClzspec(AlgParserParser.ClzspecContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.clzspec().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClzspecin interfaceAlgParserVisitor<Object>- Overrides:
visitClzspecin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTry_expr
public Object visitTry_expr(AlgParserParser.Try_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thetry_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTry_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitTry_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf_expr
public Object visitIf_expr(AlgParserParser.If_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theif_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIf_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitIf_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTh_at_expr
public Object visitTh_at_expr(AlgParserParser.Th_at_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theth_at_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTh_at_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitTh_at_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTh_auto_expr
public Object visitTh_auto_expr(AlgParserParser.Th_auto_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theth_auto_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTh_auto_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitTh_auto_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTh_as_expr
public Object visitTh_as_expr(AlgParserParser.Th_as_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theth_as_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTh_as_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitTh_as_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhile_expr
public Object visitWhile_expr(AlgParserParser.While_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thewhile_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhile_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitWhile_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMonolambda_expr
public Object visitMonolambda_expr(AlgParserParser.Monolambda_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by themonolambda_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMonolambda_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitMonolambda_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSlambda_expr
public Object visitSlambda_expr(AlgParserParser.Slambda_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theslambda_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSlambda_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitSlambda_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
transArg
protected io.opsit.explang.ASTN transArg(io.opsit.explang.ASTN arg)
-
visitLambda
public Object visitLambda(AlgParserParser.LambdaContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.lambda().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdain interfaceAlgParserVisitor<Object>- Overrides:
visitLambdain classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturn_expr
public Object visitReturn_expr(AlgParserParser.Return_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thereturn_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturn_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitReturn_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFor_expr
public Object visitFor_expr(AlgParserParser.For_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thefor_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFor_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitFor_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVector_expr
public Object visitVector_expr(AlgParserParser.Vector_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thevector_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVector_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitVector_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDict_expr
public Object visitDict_expr(AlgParserParser.Dict_exprContext ctx)
Parse and transpile dictionary definition (JSON like syntax { x : y, ...}).- Specified by:
visitDict_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitDict_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuote_expr
public Object visitQuote_expr(AlgParserParser.Quote_exprContext ctx)
Parse and transpile quoted expression (:expr).- Specified by:
visitQuote_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitQuote_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDotchain
public Object visitDotchain(AlgParserParser.DotchainContext ctx)
Parse and transpile static association lookup expression (.).- Specified by:
visitDotchainin interfaceAlgParserVisitor<Object>- Overrides:
visitDotchainin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssoc_lookup
public Object visitAssoc_lookup(AlgParserParser.Assoc_lookupContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theassoc_lookuplabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssoc_lookupin interfaceAlgParserVisitor<Object>- Overrides:
visitAssoc_lookupin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDwim_matches_expr
public Object visitDwim_matches_expr(AlgParserParser.Dwim_matches_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thedwim_matches_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDwim_matches_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitDwim_matches_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDwim_search_expr
public Object visitDwim_search_expr(AlgParserParser.Dwim_search_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thedwim_search_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDwim_search_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitDwim_search_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFspart
public Object visitFspart(AlgParserParser.FspartContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.fspart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFspartin interfaceAlgParserVisitor<Object>- Overrides:
visitFspartin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldspec
public Object visitFieldspec(AlgParserParser.FieldspecContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.fieldspec().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldspecin interfaceAlgParserVisitor<Object>- Overrides:
visitFieldspecin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFields_expr
public Object visitFields_expr(AlgParserParser.Fields_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thefields_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFields_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitFields_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprList
public Object visitExprList(AlgParserParser.ExprListContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.exprList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprListin interfaceAlgParserVisitor<Object>- Overrides:
visitExprListin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssign_expr
public Object visitAssign_expr(AlgParserParser.Assign_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theassign_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssign_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitAssign_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptassign
public Object visitOptassign(AlgParserParser.OptassignContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.optassign().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptassignin interfaceAlgParserVisitor<Object>- Overrides:
visitOptassignin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLet_expr
public Object visitLet_expr(AlgParserParser.Let_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thelet_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLet_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitLet_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVardecl_expr
public Object visitVardecl_expr(AlgParserParser.Vardecl_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thevardecl_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVardecl_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitVardecl_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitChar_expr
public Object visitChar_expr(AlgParserParser.Char_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thechar_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitChar_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitChar_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtom_expr
public Object visitAtom_expr(AlgParserParser.Atom_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theatom_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAtom_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitAtom_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitProduct_expr
public Object visitProduct_expr(AlgParserParser.Product_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theproduct_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitProduct_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitProduct_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSum_expr
public Object visitSum_expr(AlgParserParser.Sum_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thesum_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSum_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitSum_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumcomp_expr
public Object visitNumcomp_expr(AlgParserParser.Numcomp_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thenumcomp_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumcomp_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitNumcomp_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEquality_expr
public Object visitEquality_expr(AlgParserParser.Equality_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theequality_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEquality_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitEquality_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
public Object visitBlock(AlgParserParser.BlockContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceAlgParserVisitor<Object>- Overrides:
visitBlockin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReplblock
public Object visitReplblock(AlgParserParser.ReplblockContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.replblock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReplblockin interfaceAlgParserVisitor<Object>- Overrides:
visitReplblockin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBeblock
public Object visitBeblock(AlgParserParser.BeblockContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced byAlgParserParser.beblock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBeblockin interfaceAlgParserVisitor<Object>- Overrides:
visitBeblockin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnd_expr
public Object visitAnd_expr(AlgParserParser.And_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theand_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnd_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitAnd_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOr_expr
public Object visitOr_expr(AlgParserParser.Or_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theor_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOr_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitOr_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIn_expr
public Object visitIn_expr(AlgParserParser.In_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thein_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIn_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitIn_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSign_expr
public Object visitSign_expr(AlgParserParser.Sign_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thesign_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSign_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitSign_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNot_expr
public Object visitNot_expr(AlgParserParser.Not_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thenot_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNot_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitNot_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIpol_expr
public Object visitIpol_expr(AlgParserParser.Ipol_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theipol_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIpol_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitIpol_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParen_expr
public Object visitParen_expr(AlgParserParser.Paren_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by theparen_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParen_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitParen_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFuncall_expr
public Object visitFuncall_expr(AlgParserParser.Funcall_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thefuncall_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFuncall_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitFuncall_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
convertArgList
protected void convertArgList(io.opsit.explang.ASTNList result, io.opsit.explang.ASTNList args)
-
visitLambdacall_expr
public Object visitLambdacall_expr(AlgParserParser.Lambdacall_exprContext ctx)
Description copied from class:AlgParserBaseVisitorVisit a parse tree produced by thelambdacall_exprlabeled alternative inAlgParserParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdacall_exprin interfaceAlgParserVisitor<Object>- Overrides:
visitLambdacall_exprin classAlgParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
makePctx
public io.opsit.explang.ParseCtx makePctx(org.antlr.v4.runtime.ParserRuleContext rctx)
Make new Parse context on basis of ANTLR parsing information.
-
-