Sha256: 791e0c490d19457f24f922ac6d167df62e6ed1a0be71bac7fd5361ffe2f5f354

Contents?: true

Size: 403 Bytes

Versions: 33

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Code < Language
      def whitespace
        Whitespace
      end

      def whitespace?
        whitespace.maybe
      end

      def statement
        Statement
      end

      def present
        (whitespace? << statement << whitespace?).repeat(1)
      end

      def root
        present | whitespace?
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
code-ruby-1.1.3 lib/code/parser/code.rb
code-ruby-1.1.1 lib/code/parser/code.rb
code-ruby-1.1.0 lib/code/parser/code.rb
code-ruby-1.0.0 lib/code/parser/code.rb
code-ruby-0.15.16 lib/code/parser/code.rb
code-ruby-0.15.15 lib/code/parser/code.rb
code-ruby-0.15.14 lib/code/parser/code.rb
code-ruby-0.15.13 lib/code/parser/code.rb
code-ruby-0.15.12 lib/code/parser/code.rb
code-ruby-0.15.11 lib/code/parser/code.rb
code-ruby-0.15.10 lib/code/parser/code.rb
code-ruby-0.15.9 lib/code/parser/code.rb
code-ruby-0.15.8 lib/code/parser/code.rb
code-ruby-0.15.7 lib/code/parser/code.rb
code-ruby-0.15.6 lib/code/parser/code.rb
code-ruby-0.15.5 lib/code/parser/code.rb
code-ruby-0.15.4 lib/code/parser/code.rb
code-ruby-0.15.3 lib/code/parser/code.rb
code-ruby-0.15.2 lib/code/parser/code.rb
code-ruby-0.15.0 lib/code/parser/code.rb