Sha256: c93002840c17af456c3cdfd86c751c66a3a4a83595581b919f34cce2098b5988
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
# encoding: utf-8 module Mojikun class Parser def initialize(tokens) @tokens = tokens end def call @tokens.collect do |token| case token when "👈" PointLeftNode.new when "👉" PointRightNode.new when "👍" ThumbsUpNode.new when "👎" ThumbsDownNode.new when "💾" SaveNode.new when "💻" DisplayNode.new when "🔃" LoopNode.new when "🔙" EndLoopNode.new end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mojikun-1.0.1 | lib/mojikun/parser.rb |
mojikun-1.0.0 | lib/mojikun/parser.rb |