Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
fayrant-lang
master
Top Level Namespace
FayrantLang
AnyValue
ArithmeticError
ArityMismatchError
ArrayObjectValue
AST
BinaryExpr
BinaryExprAnd
BinaryExprConcat
BinaryExprDiv
BinaryExprDivInv
BinaryExprEq
BinaryExprExpt
BinaryExprGe
BinaryExprGt
BinaryExprLe
BinaryExprLt
BinaryExprMinus
BinaryExprMod
BinaryExprMult
BinaryExprNeq
BinaryExprOr
BinaryExprPlus
BooleanLiteralExpr
BreakStatement
ClassDeclarationStatement
ContinueStatement
EmptyStatement
ExecResult
Expr
ExprStatement
ForStatement
FunctionCallExpr
FunctionDeclarationStatement
IfStatement
LiteralExpr
NullLiteralExpr
NumberLiteralExpr
ObjectAccessExpr
ObjectFieldAssignmentStatement
ReturnStatement
Statement
StringFragment
StringInterpolationFragment
StringLiteralExpr
StringLiteralFragment
UnaryExpr
UnaryExprMinus
UnaryExprNegation
UnaryExprToNumber
UnaryExprToString
VariableAssignmentStatement
VariableDeclarationStatement
VariableExpr
WhileStatement
BooleanValue
BuiltinFunction
Context
DefinedVarError
ExecutionError
FunctionValue
Lexer
LexerContext
Location
NullValue
NumberValue
ObjectValue
Parser
StatementError
StringValue
SyntaxError
Token
TokenType
TypeError
UndefinedVarError
UserFunction
ValueType
Built with Crystal 1.9.2
2023-10-07 15:36:08 UTC
class
FayrantLang::AST::UnaryExprMinus
FayrantLang::AST::UnaryExprMinus
FayrantLang::AST::UnaryExpr
FayrantLang::AST::Expr
Reference
Object
Defined in:
ast/expression.cr
Constructors
.new
(expr : Expr)
Instance Method Summary
#==
(other : UnaryExprMinus)
#eval
(ctx : Context) : NumberValue
Instance methods inherited from class
FayrantLang::AST::UnaryExpr
expr : FayrantLang::AST::Expr
expr
Constructor methods inherited from class
FayrantLang::AST::UnaryExpr
new(expr : Expr)
new
Instance methods inherited from class
FayrantLang::AST::Expr
==(other)
==
,
eval(ctx : Context) : AnyValue
eval
Constructor Detail
def self.
new
(expr :
Expr
)
#
[
View source
]
Instance Method Detail
def
==
(other :
UnaryExprMinus
)
#
[
View source
]
def
eval
(ctx :
Context
) :
NumberValue
#
[
View source
]