Class: Python::Parser::Succeeded

Inherits:
Object
  • Object
show all
Defined in:
lib/python/parser/combinator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed, rest) ⇒ Succeeded

Returns a new instance of Succeeded.



9
10
11
# File 'lib/python/parser/combinator.rb', line 9

def initialize(parsed, rest)
  @parsed, @rest = parsed, rest
end

Instance Attribute Details

#parsedObject (readonly)

Returns the value of attribute parsed.



8
9
10
# File 'lib/python/parser/combinator.rb', line 8

def parsed
  @parsed
end

#restObject (readonly)

Returns the value of attribute rest.



8
9
10
# File 'lib/python/parser/combinator.rb', line 8

def rest
  @rest
end