Sha256: 5f2903d950f77f3a31a9adabed5c3aba7d60b2f59c0b8cd6320829a824ad22c9

Contents?: true

Size: 330 Bytes

Versions: 18

Compression:

Stored size: 330 Bytes

Contents

class Code
  class Parser
    class Group < ::Code::Parser
      def parse
        if match(OPENING_PARENTHESIS)
          code = parse_subclass(::Code::Parser::Code)
          match(CLOSING_PARENTHESIS)
          { group: code }
        else
          parse_subclass(::Code::Parser::Call)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.8 lib/code/parser/group.rb
code-ruby-parser-0.1.8 lib/code/parser/group.rb
template-ruby-parser-0.1.7 lib/code/parser/group.rb
code-ruby-parser-0.1.7 lib/code/parser/group.rb
template-ruby-parser-0.1.6 lib/code/parser/group.rb
code-ruby-parser-0.1.6 lib/code/parser/group.rb
template-ruby-parser-0.1.5 lib/code/parser/group.rb
code-ruby-parser-0.1.5 lib/code/parser/group.rb
template-ruby-parser-0.1.4 lib/code/parser/group.rb
code-ruby-parser-0.1.4 lib/code/parser/group.rb
template-ruby-parser-0.1.3 lib/code/parser/group.rb
code-ruby-parser-0.1.3 lib/code/parser/group.rb
template-ruby-parser-0.1.2 lib/code/parser/group.rb
code-ruby-parser-0.1.2 lib/code/parser/group.rb
template-ruby-parser-0.1.1 lib/code/parser/group.rb
code-ruby-parser-0.1.1 lib/code/parser/group.rb
template-ruby-parser-0.1.0 lib/code/parser/group.rb
code-ruby-parser-0.1.0 lib/code/parser/group.rb