Class ASMGenerationVisitor
- All Implemented Interfaces:
UISCVisitor<java.lang.String>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<java.lang.String>
public class ASMGenerationVisitor extends UISCBaseVisitor<java.lang.String>
-
Field Summary
Fields Modifier and Type Field Description ScopeLocal
CurrentLocalScope
ScopeGlobal
Global
-
Constructor Summary
Constructors Constructor Description ASMGenerationVisitor(CompilerFileSystem fileSystem)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
aggregateResult(java.lang.String aggregate, java.lang.String nextResult)
protected java.lang.String
defaultResult()
java.lang.String
getMainFunctionAsm()
java.lang.String
visitAddressOfVariableExpression(UISCParser.AddressOfVariableExpressionContext ctx)
Visit a parse tree produced by theaddressOfVariableExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitAddSubExpression(UISCParser.AddSubExpressionContext ctx)
Visit a parse tree produced by theaddSubExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitAndOrXorExpression(UISCParser.AndOrXorExpressionContext ctx)
Visit a parse tree produced by theandOrXorExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitArrayAccessExpression(UISCParser.ArrayAccessExpressionContext ctx)
Visit a parse tree produced by thearrayAccessExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitArrayAssignmentInitialization(UISCParser.ArrayAssignmentInitializationContext ctx)
Visit a parse tree produced by thearrayAssignmentInitialization
labeled alternative inUISCParser.varDeclaration()
.java.lang.String
visitArrayInitializer(UISCParser.ArrayInitializerContext ctx)
Visit a parse tree produced byUISCParser.arrayInitializer()
.java.lang.String
visitArrayStringInitialization(UISCParser.ArrayStringInitializationContext ctx)
Begin Initializationjava.lang.String
visitArrayValueInitialization(UISCParser.ArrayValueInitializationContext ctx)
End Expressionsjava.lang.String
visitAssembly(UISCParser.AssemblyContext ctx)
Visit a parse tree produced byUISCParser.assembly()
.java.lang.String
visitAssertion(UISCParser.AssertionContext ctx)
Visit a parse tree produced byUISCParser.assertion()
.java.lang.String
visitAssignmentStatement(UISCParser.AssignmentStatementContext ctx)
Visit a parse tree produced by theassignmentStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitBitwiseExpression(UISCParser.BitwiseExpressionContext ctx)
Visit a parse tree produced by thebitwiseExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitBooleanLiteral(UISCParser.BooleanLiteralContext ctx)
Visit a parse tree produced byUISCParser.booleanLiteral()
.java.lang.String
visitCastExpression(UISCParser.CastExpressionContext ctx)
Visit a parse tree produced by thecastExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitCharLiteralExpression(UISCParser.CharLiteralExpressionContext ctx)
Visit a parse tree produced by thecharLiteralExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitComparisonExpression(UISCParser.ComparisonExpressionContext ctx)
Begin Expressionsjava.lang.String
visitEqualityExpression(UISCParser.EqualityExpressionContext ctx)
Visit a parse tree produced by theequalityExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitException(UISCParser.ExceptionContext ctx)
Visit a parse tree produced byUISCParser.exception()
.java.lang.String
visitFlagDataStatement(UISCParser.FlagDataStatementContext ctx)
Visit a parse tree produced by theflagDataStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitFlagStatement(UISCParser.FlagStatementContext ctx)
Visit a parse tree produced by theflagStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitFunctionCallExpression(UISCParser.FunctionCallExpressionContext ctx)
Visit a parse tree produced by thefunctionCallExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitFunctionCallStatement(UISCParser.FunctionCallStatementContext ctx)
End Initializationjava.lang.String
visitFunctionDeclaration(UISCParser.FunctionDeclarationContext ctx)
Visit a parse tree produced byUISCParser.functionDeclaration()
.java.lang.String
visitIfStatement(UISCParser.IfStatementContext ctx)
Visit a parse tree produced by theifStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitIncludeStatement(UISCParser.IncludeStatementContext ctx)
Begin Statementsjava.lang.String
visitLengthOfExpression(UISCParser.LengthOfExpressionContext ctx)
Visit a parse tree produced by thelengthOfExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitModuloExpression(UISCParser.ModuloExpressionContext ctx)
Visit a parse tree produced by themoduloExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitMultDivExpression(UISCParser.MultDivExpressionContext ctx)
Visit a parse tree produced by themultDivExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitNativeCallExpression(UISCParser.NativeCallExpressionContext ctx)
Visit a parse tree produced by thenativeCallExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitNegateExpression(UISCParser.NegateExpressionContext ctx)
Visit a parse tree produced by thenegateExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitNotExpression(UISCParser.NotExpressionContext ctx)
Visit a parse tree produced by thenotExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitNumberLiteralExpression(UISCParser.NumberLiteralExpressionContext ctx)
Begin Literalsjava.lang.String
visitOpAndAssignmentStatement(UISCParser.OpAndAssignmentStatementContext ctx)
Visit a parse tree produced by theopAndAssignmentStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitPostfixOpExpression(UISCParser.PostfixOpExpressionContext ctx)
Visit a parse tree produced by thepostfixOpExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitPrefixOpExpression(UISCParser.PrefixOpExpressionContext ctx)
Visit a parse tree produced by theprefixOpExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitReturnStatement(UISCParser.ReturnStatementContext ctx)
Visit a parse tree produced by thereturnStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitSizeOfExpression(UISCParser.SizeOfExpressionContext ctx)
Visit a parse tree produced by thesizeOfExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitStringLiteralExpression(UISCParser.StringLiteralExpressionContext ctx)
Visit a parse tree produced by thestringLiteralExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitStructDeclaration(UISCParser.StructDeclarationContext ctx)
Visit a parse tree produced byUISCParser.structDeclaration()
.java.lang.String
visitStructFieldReferenceExpression(UISCParser.StructFieldReferenceExpressionContext ctx)
Visit a parse tree produced by thestructFieldReferenceExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitTernaryExpression(UISCParser.TernaryExpressionContext ctx)
Visit a parse tree produced by theternaryExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitTryCatchStatement(UISCParser.TryCatchStatementContext ctx)
Visit a parse tree produced by thetryCatchStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitUforeachStatement(UISCParser.UforeachStatementContext ctx)
Visit a parse tree produced by theuforeachStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitUforiStatement(UISCParser.UforiStatementContext ctx)
Visit a parse tree produced by theuforiStatement
labeled alternative inUISCParser.statement()
.java.lang.String
visitValueAtVariableExpression(UISCParser.ValueAtVariableExpressionContext ctx)
Visit a parse tree produced by thevalueAtVariableExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitVariableReferenceExpression(UISCParser.VariableReferenceExpressionContext ctx)
Visit a parse tree produced by thevariableReferenceExpression
labeled alternative inUISCParser.expression()
.java.lang.String
visitVarInitialization(UISCParser.VarInitializationContext ctx)
Visit a parse tree produced by thevarInitialization
labeled alternative inUISCParser.varDeclaration()
.Methods inherited from class com.bradyrussell.uiscoin.lang.generated.UISCBaseVisitor
visitAssemblyStatement, visitAssertionStatement, visitBlock, visitBlockStatement, visitBooleanLiteralExpression, visitBreakStatement, visitCatchStatement, visitContinueStatement, visitElseifStatement, visitElseStatement, visitExceptionStatement, visitExprList, visitFile, visitFlag, visitFlagData, visitFormalParameter, visitFormalParameters, visitForStatement, visitInclude, visitInferredType, visitNumber, visitParenExpression, visitPointer, visitPrimitiveType, visitStructDeclarationStatement, visitStructField, visitStructType, visitTryStatement, visitType, visitVarDeclarationStatement, visitWhileStatement
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
Constructor Details
-
Method Details
-
getMainFunctionAsm
public java.lang.String getMainFunctionAsm() -
defaultResult
protected java.lang.String defaultResult()- Overrides:
defaultResult
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<java.lang.String>
-
aggregateResult
protected java.lang.String aggregateResult(java.lang.String aggregate, java.lang.String nextResult)- Overrides:
aggregateResult
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<java.lang.String>
-
visitNumberLiteralExpression
public java.lang.String visitNumberLiteralExpression(UISCParser.NumberLiteralExpressionContext ctx)Begin Literals- Specified by:
visitNumberLiteralExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitNumberLiteralExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringLiteralExpression
public java.lang.String visitStringLiteralExpression(UISCParser.StringLiteralExpressionContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thestringLiteralExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStringLiteralExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitStringLiteralExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCharLiteralExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thecharLiteralExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCharLiteralExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitCharLiteralExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.booleanLiteral()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooleanLiteral
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitBooleanLiteral
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayStringInitialization
public java.lang.String visitArrayStringInitialization(UISCParser.ArrayStringInitializationContext ctx)Begin Initialization- Specified by:
visitArrayStringInitialization
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitArrayStringInitialization
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayAssignmentInitialization
public java.lang.String visitArrayAssignmentInitialization(UISCParser.ArrayAssignmentInitializationContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thearrayAssignmentInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayAssignmentInitialization
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitArrayAssignmentInitialization
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVarInitialization
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thevarInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVarInitialization
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitVarInitialization
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionCallStatement
End Initialization- Specified by:
visitFunctionCallStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitFunctionCallStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIncludeStatement
Begin Statements- Specified by:
visitIncludeStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitIncludeStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFlagStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theflagStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFlagStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitFlagStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFlagDataStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theflagDataStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFlagDataStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitFlagDataStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryCatchStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thetryCatchStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryCatchStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitTryCatchStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitException
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.exception()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitException
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitException
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theassignmentStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssignmentStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAssignmentStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOpAndAssignmentStatement
public java.lang.String visitOpAndAssignmentStatement(UISCParser.OpAndAssignmentStatementContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theopAndAssignmentStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOpAndAssignmentStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitOpAndAssignmentStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thereturnStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReturnStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitReturnStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theifStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIfStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitIfStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUforiStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theuforiStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUforiStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitUforiStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUforeachStatement
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theuforeachStatement
labeled alternative inUISCParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUforeachStatement
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitUforeachStatement
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssertion
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.assertion()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssertion
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAssertion
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitComparisonExpression
Begin Expressions- Specified by:
visitComparisonExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitComparisonExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssembly
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.assembly()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssembly
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAssembly
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModuloExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by themoduloExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitModuloExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitModuloExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAddressOfVariableExpression
public java.lang.String visitAddressOfVariableExpression(UISCParser.AddressOfVariableExpressionContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theaddressOfVariableExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAddressOfVariableExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAddressOfVariableExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLengthOfExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thelengthOfExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLengthOfExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitLengthOfExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSizeOfExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thesizeOfExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSizeOfExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitSizeOfExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBitwiseExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thebitwiseExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBitwiseExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitBitwiseExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTernaryExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theternaryExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTernaryExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitTernaryExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitValueAtVariableExpression
public java.lang.String visitValueAtVariableExpression(UISCParser.ValueAtVariableExpressionContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thevalueAtVariableExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitValueAtVariableExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitValueAtVariableExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thecastExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCastExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitCastExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theequalityExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEqualityExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitEqualityExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNegateExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thenegateExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNegateExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitNegateExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNotExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thenotExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNotExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitNotExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAddSubExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theaddSubExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAddSubExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAddSubExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultDivExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by themultDivExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultDivExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitMultDivExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAndOrXorExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theandOrXorExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAndOrXorExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitAndOrXorExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableReferenceExpression
public java.lang.String visitVariableReferenceExpression(UISCParser.VariableReferenceExpressionContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thevariableReferenceExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableReferenceExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitVariableReferenceExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionCallExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thefunctionCallExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunctionCallExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitFunctionCallExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayAccessExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thearrayAccessExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayAccessExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitArrayAccessExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStructFieldReferenceExpression
public java.lang.String visitStructFieldReferenceExpression(UISCParser.StructFieldReferenceExpressionContext ctx)Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thestructFieldReferenceExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStructFieldReferenceExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitStructFieldReferenceExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNativeCallExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thenativeCallExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNativeCallExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitNativeCallExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfixOpExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by thepostfixOpExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPostfixOpExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitPostfixOpExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrefixOpExpression
Description copied from class:UISCBaseVisitor
Visit a parse tree produced by theprefixOpExpression
labeled alternative inUISCParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrefixOpExpression
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitPrefixOpExpression
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayValueInitialization
public java.lang.String visitArrayValueInitialization(UISCParser.ArrayValueInitializationContext ctx)End Expressions- Specified by:
visitArrayValueInitialization
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitArrayValueInitialization
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.arrayInitializer()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayInitializer
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitArrayInitializer
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStructDeclaration
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.structDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStructDeclaration
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitStructDeclaration
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionDeclaration
Description copied from class:UISCBaseVisitor
Visit a parse tree produced byUISCParser.functionDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunctionDeclaration
in interfaceUISCVisitor<java.lang.String>
- Overrides:
visitFunctionDeclaration
in classUISCBaseVisitor<java.lang.String>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-