This is used to hold token places in the parse tree.
Methods
Attributes
[RW] | begins | |
[RW] | content | |
[RW] | ends | |
[RW] | info | |
[RW] | inner_range | |
[RW] | match | |
[RW] | outer_range | |
[RW] | parent | |
[RW] | token |
Public Class methods
[ show source ]
# File lib/facets/more/stateparser.rb, line 201 def initialize @content = [] end
Public Instance methods
array-like methods
[ show source ]
# File lib/facets/more/stateparser.rb, line 205 def <<( content ) ; @content << content ; end
[ show source ]
# File lib/facets/more/stateparser.rb, line 209 def each(&blk) ; @content.each(&blk) ; end
[ show source ]
# File lib/facets/more/stateparser.rb, line 207 def empty? ; @content.empty? ; end
[ show source ]
# File lib/facets/more/stateparser.rb, line 206 def last ; @content.empty? ? @content : @content.last ; end
[ show source ]
# File lib/facets/more/stateparser.rb, line 208 def pop ; @content.pop ; end