Sha256: b6022bc6e3593faaf86c203e4834ad1e0c58b5a602c4e2e509e83ad2ea6be7ae

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

module Music
module Transcription
module Parsing

grammar PositiveInteger
  include NonnegativeInteger
  
  rule positive_integer
    [0]* [1-9] nonnegative_integer {
      def to_i
        text_value.to_i
      end
    }
  end
end

end
end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
music-transcription-0.17.1 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.17.0 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.16.0 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.15.0 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.14.0 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.13.0 lib/music-transcription/parsing/numbers/positive_integer_parsing.treetop
music-transcription-0.11.0 lib/music-transcription/parsing/positive_integer_parsing.treetop
music-transcription-0.10.0 lib/music-transcription/parsing/positive_integer_parsing.treetop