W3C home > Mailing lists > Public > public-media-fragment@w3.org > July 2011

Re: ABNF definition of NPT temporal fragment times

From: Chris Double <cdouble@mozilla.com>
Date: Wed, 6 Jul 2011 20:46:57 +1200
Message-ID: <CALn1vHGNngYvr=Q167F3GBSmif=x2jdZy472+MHAdnxuuLHTbw@mail.gmail.com>
To: Philip Jägenstedt <philipj@opera.com>
Cc: public-media-fragment@w3.org
On Wed, Jul 6, 2011 at 8:39 PM, Philip Jägenstedt <philipj@opera.com> wrote:
> I'm no ABNF master myself, but npttime here means that any of npt-sec,
> npt-mmss or npt-hhmmss can match, so yes, if you think about the parser as
> having a pointer into a string that you move forward, then you should
> backtrack if npt-sec does not match.

Right, my point is that npt-sec does match the string '10:20', in that
it successfully matches the '10', it then goes back to the
'npttimedef' clause which fails on the presence of ':'. So it is
'npttimedef' that has failed, not npt-sec. We've gone beyond the
'npttime' clause here and would need to backtrack back into that.

Received on Wednesday, 6 July 2011 08:47:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:46 UTC