Sha256: bec6f58452d57600b235cd42fef1476d7eb0568c45ffcdf086dff9a0c4fee8ad

Contents?: true

Size: 418 Bytes

Versions: 18

Compression:

Stored size: 418 Bytes

Contents

class Code
  class Parser
    class Code < ::Code::Parser
      def parse
        output = []

        comments = parse_comments
        output << { comments: comments } if comments

        while code = parse_subclass(::Code::Parser::Statement)
          output << code
          comments = parse_comments
          output << { comments: comments } if comments
        end

        output
      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/code.rb
code-ruby-parser-0.1.8 lib/code/parser/code.rb
template-ruby-parser-0.1.7 lib/code/parser/code.rb
code-ruby-parser-0.1.7 lib/code/parser/code.rb
template-ruby-parser-0.1.6 lib/code/parser/code.rb
code-ruby-parser-0.1.6 lib/code/parser/code.rb
template-ruby-parser-0.1.5 lib/code/parser/code.rb
code-ruby-parser-0.1.5 lib/code/parser/code.rb
template-ruby-parser-0.1.4 lib/code/parser/code.rb
code-ruby-parser-0.1.4 lib/code/parser/code.rb
template-ruby-parser-0.1.3 lib/code/parser/code.rb
code-ruby-parser-0.1.3 lib/code/parser/code.rb
template-ruby-parser-0.1.2 lib/code/parser/code.rb
code-ruby-parser-0.1.2 lib/code/parser/code.rb
template-ruby-parser-0.1.1 lib/code/parser/code.rb
code-ruby-parser-0.1.1 lib/code/parser/code.rb
template-ruby-parser-0.1.0 lib/code/parser/code.rb
code-ruby-parser-0.1.0 lib/code/parser/code.rb