Skip to content
Snippets Groups Projects
  1. May 06, 2011
    • Adam Wardynski's avatar
      Change Position in Match data to be directly an int. · 6264ff5a
      Adam Wardynski authored
      This reflects the fact that positions stored in matches are
      absolute positions, while Position type is used in the
      language as position relative to current position in the
      sentence context. So mixing the two was confusing at the very least.
      This also actually fits the most recent version of spec,
      which no longer mentions Position, either.
      6264ff5a
  2. Apr 26, 2011
    • Adam Wardynski's avatar
      Fix MatchVector::first_token to ignore negative values. · 1270ffe8
      Adam Wardynski authored
      It was looking for minimum value and Position::Nowhere is
      the smallest you can get value-wise (min_int). So if there was
      an empty Match in a vector, first_token for the vector would
      always end up returning Position::Nowhere, which was wrong
      (empty submatches should've been ignored and Position::Nowhere
      returned only if there were no non-empty alternatives).
      1270ffe8
  3. Apr 19, 2011
  4. Mar 09, 2011
  5. Mar 03, 2011