Sha256: e7118c3bdedc9d9fb1a4cd037515583382643f2c414f939b50265546d81b3d07

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

class Code
  class Parser
    class Call < Parslet::Parser
      rule(:dictionnary) { ::Code::Parser::Dictionnary.new }

      rule(:dot) { str(".") }

      rule(:call) do
        (dictionnary.as(:left) >> dot >> call.as(:right)).as(:call) |
          dictionnary
      end

      root(:call)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
template-ruby-0.1.0 lib/code/parser/call.rb