Permalink
Browse files

update to upstream PGE;Expr changes

PGE;Expr now uses StringBuilder in stead of CodeString
  • Loading branch information...
1 parent ca69c2d commit e81ed495fdb22f891e8cf47085b05b6e2a2160a6 @plobsing plobsing committed Nov 21, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 lua/lib/luaregex.pir
View
7 lua/lib/luaregex.pir
@@ -729,11 +729,12 @@ Mostly taken from F<compilers/pge/PGE/P5Regex.pir>.
.local string begin, end
$S0 = self.'ast'()
begin = substr $S0, 0, 1
- begin = code.'escape'(begin)
+ $P0 = get_root_global ['parrot';'PGE';'Util'], 'pir_str_escape'
+ begin = $P0(begin)
end = substr $S0, 1, 1
- end = code.'escape'(end)
+ end = $P0(end)
- code.'emit'(<<" CODE", label, begin, end, next)
+ code.'append_format'(<<" CODE", label, begin, end, next)
%0: # balanced
if pos >= lastpos goto fail
$S0 = substr target, pos, 1

0 comments on commit e81ed49

Please sign in to comment.