Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r22484 r22486 1946 1946 my $F = $self->{_from}; 1947 1947 $self->{_reduced} = $tag; 1948 if ($::ACTIONS) { 1949 eval { $::ACTIONS->$tag($self) } 1950 } 1948 1951 $self->deb("REDUCE $tag from $F to $P") if $DEBUG & DEBUG::matchers; 1949 1952 # $self->whats; -
src/perl6/STD.pm
r22414 r22486 1 1 grammar STD:ver<6.0.0.alpha>:auth<http://perl.org>; 2 2 3 # should some of these be parser instance attributes? 3 4 my $LANG is context; 4 5 my $PKGDECL is context = ""; … … 7 8 my $GOAL is context = "(eof)"; 8 9 my $PARSER is context<rw>; 10 my $ACTIONS is context<rw>; 9 11 my $IN_DECL is context<rw>; 10 12 my %ROUTINES; … … 14 16 'foo' <.ws> 'bar' <.ws> 'baz' 15 17 } 16 17 =begin things todo18 19 add more suppositions and figure out exact error continuation semantics20 think about longest-token-defeating {*} that maybe should be <?{ {*}; 1}>21 add parsing this file to sanity tests :)22 evaluate "is context<rw>" for reentrancy brokenness23 24 =end things todo25 18 26 19 =begin comment overview … … 48 41 symbol will be used by default. 49 42 50 Note that rules with only one action need no #= comment, so the identifier51 of the following stub is just"TOP".43 Note that rules automatically get an implicit {*} at their return, so 44 for the TOP rule the implicit action name is also simply "TOP". 52 45 53 46 Another nod toward preprocessing is that blocks that contain nested braces … … 55 48 understand Perl 6 code. 56 49 57 This grammar also assumestransitive longest-token semantics, though58 we make a feeble attempt to order rules so a procedural interpretation 59 of alternation can usually produce a correct parse. (This will tend 60 to becomeless true over time.)50 This grammar relies on transitive longest-token semantics, though 51 initially we made a feeble attempt to order rules so a procedural 52 interpretation of alternation could usually produce a correct parse. 53 (This is becoming less true over time.) 61 54 62 55 =end comment overview -
src/perl6/gimme5
r22475 r22486 1175 1175 $key .= " $2"; 1176 1176 } 1177 $key =~ s/ +/_/g; 1177 1178 ws(); 1178 1179 $key =~ s/(['\\])/\\$1/g;
