Module: EDNGRAMMAR::Map3
- Defined in:
- lib/parser/edngrammar.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 |
# File 'lib/parser/edngrammar.rb', line 1753 def ast r = if e = elements[2].elements Hash[ [e[0].ast] + e[2].elements.map {|x| x.kp.ast } ] else {} end if ei = spec.ast if ei == "" r.cbor_stream! else warn "*** ignoring unimplemented encoding indicator #{ei.inspect} after \x7b" end end r end |