Skip to content

Instantly share code, notes, and snippets.

@cognominal
Created January 22, 2012 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cognominal/1657774 to your computer and use it in GitHub Desktop.
Save cognominal/1657774 to your computer and use it in GitHub Desktop.
fixes the problem with --target=parse #nqp
--- a/src/Perl6/Grammar.pm
+++ b/src/Perl6/Grammar.pm
@@ -428,7 +428,7 @@ grammar Perl6::Grammar is HLL::Grammar {
unless pir::defined(%*COMPILING<%?OPTIONS><outer_ctx>) {
$*SETTING := $*W.load_setting(%*COMPILING<%?OPTIONS><setting> // 'CORE');
}
- $/.CURSOR.unitstart();
+ Perl6::Actions.unitstart($/);
try {
my $EXPORTHOW := $*W.find_symbol(['EXPORTHOW']);
for $EXPORTHOW.WHO {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment