Exception: Dhaka::NoStartProductionsError
- Inherits:
-
StandardError
- Object
- StandardError
- Dhaka::NoStartProductionsError
- Defined in:
- lib/dhaka/parser/parser.rb
Overview
Raised when trying to create a Parser for a grammar that has no productions for the start symbol
Instance Method Summary collapse
-
#initialize(grammar) ⇒ NoStartProductionsError
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(grammar) ⇒ NoStartProductionsError
:nodoc:
150 151 152 |
# File 'lib/dhaka/parser/parser.rb', line 150 def initialize(grammar) #:nodoc: @grammar = grammar end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
153 154 155 |
# File 'lib/dhaka/parser/parser.rb', line 153 def to_s #:nodoc: "No start productions defined for #{@grammar.name}" end |