class Drizzle::AST::InfixExpression

Overview

Node class representing an Infix Expression, like '+', '-', '*', '/', '==', '!=', etc

Defined in:

drizzle/ast/infix_expression.cr

Constructors

Instance Method Summary

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

literal : String literal, to_s : String to_s

Constructor Detail

def self.new(token, left, operator, right) #

[View source]

Instance Method Detail

The expression found on the left side of the operator


[View source]
def literal : String #

[View source]
def operator : String #

The infix operator (+, -, *, /, etc)


[View source]

The expression found on the right side of the operator


[View source]
def to_s : String #

[View source]
def token : Drizzle::Token #

The token that caused the generation of this node


[View source]