Class SyntaxHighlightGenerator
- All Implemented Interfaces:
UISCListener
,org.antlr.v4.runtime.tree.ParseTreeListener
public class SyntaxHighlightGenerator extends UISCBaseListener
-
Constructor Summary
Constructors Constructor Description SyntaxHighlightGenerator(org.antlr.v4.runtime.CommonTokenStream tokens, SyntaxHighlighterBase syntaxHighlighter)
-
Method Summary
Methods inherited from class com.bradyrussell.uiscoin.lang.generated.UISCBaseListener
enterAddSubExpression, enterAndOrXorExpression, enterArrayInitializer, enterAssemblyStatement, enterAssertion, enterAssertionStatement, enterBitwiseExpression, enterBlock, enterBlockStatement, enterBooleanLiteral, enterBooleanLiteralExpression, enterBreakStatement, enterCastExpression, enterCatchStatement, enterComparisonExpression, enterContinueStatement, enterElseifStatement, enterElseStatement, enterEqualityExpression, enterEveryRule, enterException, enterExceptionStatement, enterExprList, enterFile, enterFlag, enterFlagDataStatement, enterFlagStatement, enterFormalParameters, enterFunctionCallStatement, enterIfStatement, enterIncludeStatement, enterInferredType, enterLengthOfExpression, enterModuloExpression, enterMultDivExpression, enterNegateExpression, enterNotExpression, enterNumberLiteralExpression, enterParenExpression, enterPointer, enterPostfixOpExpression, enterPrefixOpExpression, enterSizeOfExpression, enterStructDeclarationStatement, enterStructFieldReferenceExpression, enterTernaryExpression, enterTryCatchStatement, enterTryStatement, enterType, enterVarDeclarationStatement, enterWhileStatement, exitAddressOfVariableExpression, exitAddSubExpression, exitAndOrXorExpression, exitArrayAccessExpression, exitArrayAssignmentInitialization, exitArrayInitializer, exitArrayStringInitialization, exitArrayValueInitialization, exitAssembly, exitAssemblyStatement, exitAssertion, exitAssertionStatement, exitAssignmentStatement, exitBitwiseExpression, exitBlock, exitBlockStatement, exitBooleanLiteral, exitBooleanLiteralExpression, exitBreakStatement, exitCastExpression, exitCatchStatement, exitCharLiteralExpression, exitComparisonExpression, exitContinueStatement, exitElseifStatement, exitElseStatement, exitEqualityExpression, exitEveryRule, exitException, exitExceptionStatement, exitExprList, exitFile, exitFlag, exitFlagData, exitFlagDataStatement, exitFlagStatement, exitFormalParameter, exitFormalParameters, exitForStatement, exitFunctionCallExpression, exitFunctionCallStatement, exitFunctionDeclaration, exitIfStatement, exitInclude, exitIncludeStatement, exitInferredType, exitLengthOfExpression, exitModuloExpression, exitMultDivExpression, exitNativeCallExpression, exitNegateExpression, exitNotExpression, exitNumber, exitNumberLiteralExpression, exitOpAndAssignmentStatement, exitParenExpression, exitPointer, exitPostfixOpExpression, exitPrefixOpExpression, exitPrimitiveType, exitReturnStatement, exitSizeOfExpression, exitStringLiteralExpression, exitStructDeclaration, exitStructDeclarationStatement, exitStructField, exitStructFieldReferenceExpression, exitStructType, exitTernaryExpression, exitTryCatchStatement, exitTryStatement, exitType, exitUforeachStatement, exitUforiStatement, exitValueAtVariableExpression, exitVarDeclarationStatement, exitVariableReferenceExpression, exitVarInitialization, exitWhileStatement, visitErrorNode, visitTerminal
-
Constructor Details
-
SyntaxHighlightGenerator
public SyntaxHighlightGenerator(org.antlr.v4.runtime.CommonTokenStream tokens, SyntaxHighlighterBase syntaxHighlighter)
-
-
Method Details
-
enterPrimitiveType
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.primitiveType()
.The default implementation does nothing.
- Specified by:
enterPrimitiveType
in interfaceUISCListener
- Overrides:
enterPrimitiveType
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterStructType
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.structType()
.The default implementation does nothing.
- Specified by:
enterStructType
in interfaceUISCListener
- Overrides:
enterStructType
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterVarInitialization
Description copied from class:UISCBaseListener
Enter a parse tree produced by thevarInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation does nothing.
- Specified by:
enterVarInitialization
in interfaceUISCListener
- Overrides:
enterVarInitialization
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterStringLiteralExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thestringLiteralExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterStringLiteralExpression
in interfaceUISCListener
- Overrides:
enterStringLiteralExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterArrayValueInitialization
Description copied from class:UISCBaseListener
Enter a parse tree produced by thearrayValueInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation does nothing.
- Specified by:
enterArrayValueInitialization
in interfaceUISCListener
- Overrides:
enterArrayValueInitialization
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterArrayAccessExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thearrayAccessExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterArrayAccessExpression
in interfaceUISCListener
- Overrides:
enterArrayAccessExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterArrayStringInitialization
Description copied from class:UISCBaseListener
Enter a parse tree produced by thearrayStringInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation does nothing.
- Specified by:
enterArrayStringInitialization
in interfaceUISCListener
- Overrides:
enterArrayStringInitialization
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterAssignmentStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by theassignmentStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterAssignmentStatement
in interfaceUISCListener
- Overrides:
enterAssignmentStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterOpAndAssignmentStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by theopAndAssignmentStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterOpAndAssignmentStatement
in interfaceUISCListener
- Overrides:
enterOpAndAssignmentStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterStructField
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.structField()
.The default implementation does nothing.
- Specified by:
enterStructField
in interfaceUISCListener
- Overrides:
enterStructField
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterAssembly
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.assembly()
.The default implementation does nothing.
- Specified by:
enterAssembly
in interfaceUISCListener
- Overrides:
enterAssembly
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterFlagData
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.flagData()
.The default implementation does nothing.
- Specified by:
enterFlagData
in interfaceUISCListener
- Overrides:
enterFlagData
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterCharLiteralExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thecharLiteralExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterCharLiteralExpression
in interfaceUISCListener
- Overrides:
enterCharLiteralExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterInclude
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.include()
.The default implementation does nothing.
- Specified by:
enterInclude
in interfaceUISCListener
- Overrides:
enterInclude
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterNativeCallExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thenativeCallExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterNativeCallExpression
in interfaceUISCListener
- Overrides:
enterNativeCallExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterNumber
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.number()
.The default implementation does nothing.
- Specified by:
enterNumber
in interfaceUISCListener
- Overrides:
enterNumber
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterStructDeclaration
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.structDeclaration()
.The default implementation does nothing.
- Specified by:
enterStructDeclaration
in interfaceUISCListener
- Overrides:
enterStructDeclaration
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterAddressOfVariableExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by theaddressOfVariableExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterAddressOfVariableExpression
in interfaceUISCListener
- Overrides:
enterAddressOfVariableExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterValueAtVariableExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thevalueAtVariableExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterValueAtVariableExpression
in interfaceUISCListener
- Overrides:
enterValueAtVariableExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterReturnStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by thereturnStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterReturnStatement
in interfaceUISCListener
- Overrides:
enterReturnStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterUforiStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by theuforiStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterUforiStatement
in interfaceUISCListener
- Overrides:
enterUforiStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterUforeachStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by theuforeachStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterUforeachStatement
in interfaceUISCListener
- Overrides:
enterUforeachStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterForStatement
Description copied from class:UISCBaseListener
Enter a parse tree produced by theforStatement
labeled alternative inUISCParser.statement()
.The default implementation does nothing.
- Specified by:
enterForStatement
in interfaceUISCListener
- Overrides:
enterForStatement
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterArrayAssignmentInitialization
public void enterArrayAssignmentInitialization(UISCParser.ArrayAssignmentInitializationContext ctx)Description copied from class:UISCBaseListener
Enter a parse tree produced by thearrayAssignmentInitialization
labeled alternative inUISCParser.varDeclaration()
.The default implementation does nothing.
- Specified by:
enterArrayAssignmentInitialization
in interfaceUISCListener
- Overrides:
enterArrayAssignmentInitialization
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterFormalParameter
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.formalParameter()
.The default implementation does nothing.
- Specified by:
enterFormalParameter
in interfaceUISCListener
- Overrides:
enterFormalParameter
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterFunctionCallExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thefunctionCallExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterFunctionCallExpression
in interfaceUISCListener
- Overrides:
enterFunctionCallExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterFunctionDeclaration
Description copied from class:UISCBaseListener
Enter a parse tree produced byUISCParser.functionDeclaration()
.The default implementation does nothing.
- Specified by:
enterFunctionDeclaration
in interfaceUISCListener
- Overrides:
enterFunctionDeclaration
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
enterVariableReferenceExpression
Description copied from class:UISCBaseListener
Enter a parse tree produced by thevariableReferenceExpression
labeled alternative inUISCParser.expression()
.The default implementation does nothing.
- Specified by:
enterVariableReferenceExpression
in interfaceUISCListener
- Overrides:
enterVariableReferenceExpression
in classUISCBaseListener
- Parameters:
ctx
- the parse tree
-
getText
public java.lang.String getText()
-