Exception: DrgDSL::UnknownCstError
- Inherits:
-
StandardError
- Object
- StandardError
- DrgDSL::UnknownCstError
- Defined in:
- lib/drgdsl/ast_builder.rb
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(cst, result) ⇒ UnknownCstError
constructor
A new instance of UnknownCstError.
- #message ⇒ Object
Constructor Details
#initialize(cst, result) ⇒ UnknownCstError
Returns a new instance of UnknownCstError.
11 12 13 14 |
# File 'lib/drgdsl/ast_builder.rb', line 11 def initialize(cst, result) @cst = cst @result = result end |
Instance Attribute Details
#cst ⇒ Object (readonly)
Returns the value of attribute cst.
7 8 9 |
# File 'lib/drgdsl/ast_builder.rb', line 7 def cst @cst end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/drgdsl/ast_builder.rb', line 7 def result @result end |
Instance Method Details
#message ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/drgdsl/ast_builder.rb', line 16 def <<~EOM Don't know how to build AST from this CST: #{pretty cst} Intermediate result: #{pretty result} EOM end |