Class: Piggly::Parser::Nodes::NotImplemented

Inherits:
NodeClass show all
Defined in:
lib/piggly/parser/nodes.rb

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from NodeClass

#assignment?, #block?, #branch?, #comment?, #datatype?, #else?, #expression?, #for?, #identifier?, #if?, #indent, #keyword?, #label?, #loop?, #named?, #sql?, #statement?, #string?, #stub?, #style, #tag, #tag_id, #tagged?, #token?, #while?, #whitespace?

Methods included from Traversal

#count, #find, #flatten, #inject, #select

Instance Method Details

#parent=(object) ⇒ Object

Raises:



370
371
372
373
# File 'lib/piggly/parser/nodes.rb', line 370

def parent=(object)
  # this would go in the constructor, but parent is set from outside
  raise Failure, "Grammar does not implement #{object.source_text} at line #{input.line_of(object.interval.first)}"
end