Sha256: 3fb954b7d7d222b78bb70b5b7321b8431c969a6b36f9eab8f639b317e3d71c51

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

module Music
module Transcription
module Parsing

grammar Duration
  include PositiveInteger
  
  rule duration
    num_and_den / num_only / den_only
  end
  
  rule num_and_den
    positive_integer "/" positive_integer <NumDenNode>
  end
  
  rule num_only
    numerator:positive_integer "/"? <NumOnlyNode>
  end
  
  rule den_only
    "/" denominator:positive_integer <DenOnlyNode>
  end
end

end
end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
music-transcription-0.21.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.20.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.19.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.17.1 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.17.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.16.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.15.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.14.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.13.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.11.0 lib/music-transcription/parsing/duration_parsing.treetop
music-transcription-0.10.0 lib/music-transcription/parsing/duration_parsing.treetop