Sha256: efa901331fa3a57095882487e6317128aa5edc78c09c85f4403fd8b3dfa3e251

Contents?: true

Size: 393 Bytes

Versions: 12

Compression:

Stored size: 393 Bytes

Contents

class Code
  class Parser
    class Nothing < Parslet::Parser
      rule(:group) { ::Code::Parser::Group.new }

      rule(:nothing_keyword) { str("nothing") }
      rule(:null_keyword) { str("null") }
      rule(:nil_keyword) { str("nil") }

      rule(:nothing) do
        (nothing_keyword | null_keyword | nil_keyword).as(:nothing) | group
      end

      root(:nothing)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
template-ruby-0.4.0 lib/code/parser/nothing.rb
code-ruby-0.4.0 lib/code/parser/nothing.rb
template-ruby-0.3.1 lib/code/parser/nothing.rb
code-ruby-0.3.1 lib/code/parser/nothing.rb
template-ruby-0.3.0 lib/code/parser/nothing.rb
code-ruby-0.3.0 lib/code/parser/nothing.rb
code-ruby-0.2.4 lib/code/parser/nothing.rb
template-ruby-0.2.4 lib/code/parser/nothing.rb
template-ruby-0.2.3 lib/code/parser/nothing.rb
template-ruby-0.2.2 lib/code/parser/nothing.rb
template-ruby-0.2.1 lib/code/parser/nothing.rb
template-ruby-0.2.0 lib/code/parser/nothing.rb