From 19d5ef4aecf75c609608dc027d7a00c5f57b222f Mon Sep 17 00:00:00 2001 From: pmichaud Date: Sun, 22 Nov 2009 14:14:36 -0600 Subject: [PATCH] Convert 'from' to 'p' (:p/:pos). --- build/PARROT_REVISION | 2 +- src/Regex/Cursor.pir | 6 +++--- src/cheats/hll-compiler.pir | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/PARROT_REVISION b/build/PARROT_REVISION index 62ad780..a0e17e0 100644 --- a/build/PARROT_REVISION +++ b/build/PARROT_REVISION @@ -1 +1 @@ -42612 +42791 diff --git a/src/Regex/Cursor.pir b/src/Regex/Cursor.pir index 9353012..0b50d31 100644 --- a/src/Regex/Cursor.pir +++ b/src/Regex/Cursor.pir @@ -225,7 +225,7 @@ Create a new cursor for matching C. .sub '!cursor_init' :method .param string target - .param int from :named('from') :optional + .param int pos :named('p') :optional .local pmc parrotclass, cur $P0 = self.'HOW'() @@ -236,9 +236,9 @@ Create a new cursor for matching C. $P0 = target setattribute cur, '$!target', $P0 - $P0 = box from + $P0 = box pos setattribute cur, '$!from', $P0 - $P0 = box from + $P0 = box pos setattribute cur, '$!pos', $P0 .return (cur) diff --git a/src/cheats/hll-compiler.pir b/src/cheats/hll-compiler.pir index 85789de..00bb2df 100644 --- a/src/cheats/hll-compiler.pir +++ b/src/cheats/hll-compiler.pir @@ -56,7 +56,7 @@ .local int rxtrace rxtrace = options['parsetrace'] - match = parsegrammar.'parse'(source, 'from'=>0, 'actions'=>parseactions, 'rxtrace'=>rxtrace) + match = parsegrammar.'parse'(source, 'p'=>0, 'actions'=>parseactions, 'rxtrace'=>rxtrace) unless match goto err_parsefail .return (match)