Class Expr.UnaryPrefix
Represents unary prefix expressions. Examples of such expressions are !flag
and -10
. Note that prefix
increment and decrement are currently not supported.
Inheritance
System.Object
Expr.UnaryPrefix
Assembly: Perlang.Common.dll
Syntax
public class UnaryPrefix : Expr, ITokenAware
Constructors
|
Improve this Doc
View Source
UnaryPrefix(Token, Expr)
Declaration
public UnaryPrefix(Token operator, Expr right)
Parameters
Type |
Name |
Description |
Token |
operator |
|
Expr |
right |
|
Properties
|
Improve this Doc
View Source
Operator
Declaration
public Token Operator { get; }
Property Value
|
Improve this Doc
View Source
Right
Declaration
public Expr Right { get; }
Property Value
|
Improve this Doc
View Source
Token
Declaration
public Token Token { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept<TR>(Expr.IVisitor<TR>)
Declaration
public override TR Accept<TR>(Expr.IVisitor<TR> visitor)
Parameters
Returns
Type Parameters
Overrides
Perlang.Expr.Accept<TR>(Perlang.Expr.IVisitor<TR>)
Implements