diff options
| author | hallgren <hallgren@chalmers.se> | 2015-12-01 15:14:27 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2015-12-01 15:14:27 +0000 |
| commit | 5bb792be5e3416a2229d549d57f02b54829c470b (patch) | |
| tree | b5ec6bcfbbc289a4670a125f0afdec116c011e2b /src/compiler/GF/Compile/Compute | |
| parent | d6ae5e811b7d61ab714b2cab1437af2c350aefb6 (diff) | |
GF.Data.Str: change matchPrefix to agree with the GF book and the run-time system
The matchPrefix function is used in str2strings and the partial evaluator to
compute pre{...} tokens. But unlike the description in the GF book and
the implementation in the run-time system, matchPrefix looked at
the concatenation(!) of all following tokens and not just the next token
when deciding how to compute a pre{...} token.
This is a backwards incompatible change, but it is subtle and probably won't
cause any problems. In particular, the example grammars are unaffected.
Diffstat (limited to 'src/compiler/GF/Compile/Compute')
0 files changed, 0 insertions, 0 deletions
