module Mail
  grammar MimeVersion

    include RFC2822

    rule version
      CFWS major_digits:DIGIT+ comment? "." comment? minor_digits:DIGIT+ CFWS {
        def major
          major_digits
        end
        
        def minor
          minor_digits
        end
      }
    end
    
  end
end