- Timestamp:
- 09/06/08 21:10:58 (3 months ago)
- Location:
- src/perl6
- Files:
-
- 2 modified
-
Cursor.pmc (modified) (1 diff)
-
STD.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r22080 r22174 2422 2422 my $base = $ALT // ''; 2423 2423 $base .= ' ' if $base; 2424 my %autolexbase = %AUTOLEXED; 2424 2425 for my $alt (@$alts) { 2426 local %AUTOLEXED = %autolexbase; # alts are independent 2425 2427 $fakepos = $oldfakepos; 2426 2428 local $ALT = $base . $alt->{alt}; -
src/perl6/STD.pm
r22162 r22174 2537 2537 [ 2538 2538 | '(' <capture>? ')' 2539 | < termish>2539 | <?before \S> <termish> 2540 2540 ] 2541 2541 } … … 2569 2569 <longname> { $¢.add_type($<longname>); } 2570 2570 [ of <fulltypename> ]? 2571 where < EXPR>2571 where <termish> 2572 2572 } 2573 2573 … … 3198 3198 3199 3199 token args ($istype = 0) { 3200 :my $listop y= 0;3200 :my $listopish = 0; 3201 3201 [ 3202 3202 | '.(' <in: ')', 'semilist', 'argument list'> {*} #= func args 3203 3203 | '(' <in: ')', 'semilist', 'argument list'> {*} #= func args 3204 3204 | <.unsp> '.'? '(' <in: ')', 'semilist', 'argument list'> {*} #= func args 3205 | {} [<?before \s> <!{ $istype }> <.ws> <!infixstopper> <arglist>]? { $listopy = 1 } 3206 ] 3207 3208 [ 3209 || <?{ $listopy }> 3205 | {} <?before \s> <.ws> 3206 [ 3207 || <!{ $istype }> <!infixstopper> <arglist> { $listopish = 1 } 3208 || <?{ $istype }> ['where' <.ws> <constraints=termish> <.ws>]* 3209 ] 3210 3211 ] 3212 3213 [ 3214 || <?{ $listopish }> 3210 3215 || ':' <?before \s> <arglist> # either switch to listopiness 3211 3216 || {{ $+prevop = $<O> = {}; }} # or allow adverbs (XXX needs hoisting?) … … 3229 3234 {*} #= packagevar 3230 3235 ]? 3236 # subset type? 3237 <.ws> 3238 [ 'where' <.ws> <constraints=termish> <.ws> ]* 3231 3239 {*} #= typename 3232 3240
