Module: Parslet::Atoms::Rule::Position::Context

Included in:
Parslet::Atoms::Rule::Position
Defined in:
lib/parslet/atoms/rule/position.rb

Instance Method Summary collapse

Instance Method Details

#entryObject



51
52
53
# File 'lib/parslet/atoms/rule/position.rb', line 51

def entry
  context.lookup(rule, pos)
end

#entry=(entry) ⇒ Object



47
48
49
# File 'lib/parslet/atoms/rule/position.rb', line 47

def entry=(entry)
  context.set rule, pos, entry
end

#headObject



55
56
57
# File 'lib/parslet/atoms/rule/position.rb', line 55

def head
  context.heads[pos]
end

#head=(h) ⇒ Object



59
60
61
# File 'lib/parslet/atoms/rule/position.rb', line 59

def head=(h)
  context.heads[pos] = h
end

#lr_stackObject



63
64
65
# File 'lib/parslet/atoms/rule/position.rb', line 63

def lr_stack
  context.lr_stack
end