idkwim / ouspg

Automatically exported from code.google.com/p/ouspg
3 stars 0 forks source link

Blab backreferences don't work properly within repetitions #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Backreferences don't seem to get updated in within a repetition in a RHS. Seems 
like they only push new ones and read the old (first) expansion.

  $ blab -e '(\(" " | "x"\)\1 "|")' -n 20
    |xx|xx|xx|  |  |xx|  |xx|  |xx|xx|xx|  |  |  |xx|  |xx|xx|
  $ blab -e '((\(" " | "x"\)\1 "|"){20})'
  xx| x|xx| x|xx|xx|xx| x|xx| x| x| x| x|xx| x| x| x| x|xx|xx|

Original issue reported on code.google.com by aohelin on 7 Aug 2013 at 4:53

GoogleCodeExporter commented 9 years ago
$ blab -e '((\(" " | "x"\)\1 "|"){20})'
xx|  |  |xx|  |xx|  |  |  |xx|xx|xx|xx|  |xx|xx|xx|  |  |xx|

Original comment by aohelin on 7 Aug 2013 at 5:30