Sha256: e772575e275451ec129c95ea8989c84b811bcc59d6375847b7b6e2a7ed0950ba
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
module Simplabs module Excellent module Core module VisitableSexp def accept(visitor) visitor.visit(self) end def node_type first end def children sexp_body.select { |child| child.is_a?(VisitableSexp) } end def is_language_node? first.class == Symbol end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplabs-excellent-1.0.0 | lib/simplabs/excellent/core/visitable_sexp.rb |
simplabs-excellent-1.0.1 | lib/simplabs/excellent/core/visitable_sexp.rb |