markusdr / transducersaurus

Automatically exported from code.google.com/p/transducersaurus
11 stars 6 forks source link

regex2wfst fails if rule one rule name contains other #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This grammar doesn't work properly:

CITY1 := BOSTON
CITY10 := CHICAGO
result := ( $CITY1 | CITY10 )

The rule CITY10 got replaced with CITY1 + 0

The fix is attached

Original issue reported on code.google.com by nshmy...@gmail.com on 11 Jan 2014 at 12:01

Attachments: