Class: Chelsy::Operator::Base

Inherits:
Expr show all
Defined in:
lib/chelsy/ast.rb,
lib/chelsy/ast.rb

Direct Known Subclasses

Binary, Conditional, Unary

Instance Attribute Summary

Attributes inherited from Element

#fragments, #post_fragments

Class Method Summary collapse

Methods inherited from Element

#initialize

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Chelsy::Element

Class Method Details

.operatorObject



538
# File 'lib/chelsy/ast.rb', line 538

def self.operator; nil end

.precedenceObject



931
932
933
# File 'lib/chelsy/ast.rb', line 931

def self.precedence
  OPERATOR_PRECEDENCE[self] or raise NotImplementedError
end