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::If
Ast::If
Ast::Statement
Reference
Object
Defined in:
ast/ast.cr
Constructors
.new
(cond : Expression, then_branch : Statement, else_branch : Statement | Nil)
Instance Method Summary
#cond
: Expression
#display
#else_branch
: Statement | Nil
#then_branch
: Statement
Constructor Detail
def self.
new
(cond :
Expression
, then_branch :
Statement
, else_branch :
Statement
| Nil)
#
[
View source
]
Instance Method Detail
def
cond
:
Expression
#
def
display
#
[
View source
]
def
else_branch
:
Statement
| Nil
#
def
then_branch
:
Statement
#