Class: Hecks::Bluebook::Expression::Resolver::IntegerLiteral

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/bluebook/expression/resolver.rb

Overview

The leaf grammar an expression's dotted/arithmetic side parses into. Which node a string produces is a pure function of the string, so parse() runs once per distinct leaf (folded into Evaluator's own ast_cache — see evaluator.rb) and interpret() reads state/attrs fresh on every call. Only Lookup — the true leaf — ever touches state/attrs.

Instance Attribute Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



30
31
32
# File 'lib/hecks/bluebook/expression/resolver.rb', line 30

def value
  @value
end