class HCL::AST::OpExpr

Defined in:

hcl/ast/op_expr.cr

Constant Summary

ADDITION = :+
AND = :"&&"
DIVIDE = :/
EQ = :==
GT = :>
GTE = :>=
LT = :<
LTE = :<=
MOD = :%
MULTIPLY = :*
NEQ = :!=
NOT = :!
OR = :"||"
SUBTRACTION = :-

Constructors

Instance Method Summary

Instance methods inherited from class HCL::AST::Node

accept(visitor) accept, evaluate(ctx : ExpressionContext) evaluate, inspect(io) inspect, source : String source, to_s(io : IO) to_s, value(ctx : ExpressionContext) : Any value

Constructor methods inherited from class HCL::AST::Node

new(source : String = "", token : Pegmatite::Token? = nil) new

Instance methods inherited from class Reference

==(other : HCL::Any) ==

Instance methods inherited from class Object

===(other : HCL::Any) ===

Class methods inherited from class Object

from_hcl(string_or_io : String | IO, ctx : HCL::ExpressionContext = HCL::ExpressionContext.default_context) from_hcl

Constructor Detail

def self.new(operator : String, left_operand : Node, right_operand : Node?, **kwargs) #

Instance Method Detail

def left_operand : HCL::AST::Node #

def operator : Symbol #

def right_operand : HCL::AST::Node? #