Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Convert 'from' to 'p' (:p/:pos).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 22, 2009
1 parent c4b8abd commit 19d5ef4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/PARROT_REVISION
@@ -1 +1 @@
42612
42791
6 changes: 3 additions & 3 deletions src/Regex/Cursor.pir
Expand Up @@ -225,7 +225,7 @@ Create a new cursor for matching C<target>.

.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'()
Expand All @@ -236,9 +236,9 @@ Create a new cursor for matching C<target>.
$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)
Expand Down
2 changes: 1 addition & 1 deletion src/cheats/hll-compiler.pir
Expand Up @@ -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)
Expand Down

0 comments on commit 19d5ef4

Please sign in to comment.