class DrgDSL::UnknownCstError
Attributes
cst[R]
result[R]
Public Class Methods
new(cst, result)
click to toggle source
@param cst [Hash] CST obtained by parser @param result [Object] whatever the AstBuilder
was able to generate
# File lib/drgdsl/ast_builder.rb, line 11 def initialize(cst, result) @cst = cst @result = result end
Public Instance Methods
message()
click to toggle source
# File lib/drgdsl/ast_builder.rb, line 16 def message <<~EOM Don't know how to build AST from this CST: #{pretty cst} Intermediate result: #{pretty result} EOM end
Private Instance Methods
pretty(object)
click to toggle source
@return [String] nicely formatted string for enhanced readability.
# File lib/drgdsl/ast_builder.rb, line 31 def pretty(object) PP.pp object, '' end