Package EDU.purdue.jtb.parser.syntaxtree
Class UnaryExpression
java.lang.Object
EDU.purdue.jtb.parser.syntaxtree.UnaryExpression
- All Implemented Interfaces:
INode
,Serializable
JTB node class for the production UnaryExpression:
Corresponding grammar:
f0 -> . %0 #0 ( invalid input: '&'0 "+"
.. .. . .. .. | invalid input: '&'1 "-" )
.. .. . .. #1 UnaryExpression()
.. .. | %1 PreIncrementExpression()
.. .. | %2 PreDecrementExpression()
.. .. | %3 UnaryExpressionNotPlusMinus()
s: 256050335
Corresponding grammar:
f0 -> . %0 #0 ( invalid input: '&'0 "+"
.. .. . .. .. | invalid input: '&'1 "-" )
.. .. . .. #1 UnaryExpression()
.. .. | %1 PreIncrementExpression()
.. .. | %2 PreDecrementExpression()
.. .. | %3 UnaryExpressionNotPlusMinus()
s: 256050335
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
accept
(IIntVisitor vis) Accepts aIIntVisitor
visitor with user return data.void
accept
(IVoidVisitor vis) Accepts aIVoidVisitor
visitor} visitor with user return data.
-
Field Details
-
f0
Child node 0
-
-
Constructor Details
-
UnaryExpression
Constructs the node with its child node.- Parameters:
n0
- - the child node
-
-
Method Details
-
accept
Accepts aIIntVisitor
visitor with user return data. -
accept
Accepts aIVoidVisitor
visitor} visitor with user return data.
-