Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
learning-compilers
master
Ast
Assign
Binary
Block
Expression
Grouping
If
Literal
Logical
Print
Statement
Stmt
Unary
Value
Var
Variable
While
Interpreter
Environment
Interpreter
InvalidType
Literal
RuntimeException
Parser
InvalidToken
Parser
Program
SafeReader
Scanner
Token
Token
Type
Built with Crystal 1.9.2
2023-10-07 21:42:51 UTC
class
Ast::Binary
Ast::Binary
Ast::Expression
Reference
Object
Defined in:
ast/ast.cr
Constructors
.new
(left : Expression, operator : Token::Token, right : Expression)
Instance Method Summary
#display
#left
: Expression
#operator
: Token::Token
#right
: Expression
Constructor Detail
def self.
new
(left :
Expression
, operator :
Token::Token
, right :
Expression
)
#
[
View source
]
Instance Method Detail
def
display
#
[
View source
]
def
left
:
Expression
#
def
operator
:
Token::Token
#
def
right
:
Expression
#