Skip to content

Commit

Permalink
backpedal on throwing an exception
Browse files Browse the repository at this point in the history
as moritz++ points out, this is closer to how STD does it.
  • Loading branch information
Carl Masak committed Aug 25, 2012
1 parent 98591b4 commit 1b9b70b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -937,12 +937,7 @@ grammar Perl6::Grammar is HLL::Grammar {
token term:sym<lambda> { <?lambda> <pblock> }
token term:sym<type_declarator> { <type_declarator> }
token term:sym<value> { <value> }
token term:sym<unquote> {
'{{{'
[<?{ !$*IN_QUASI }> <.typed_panic: "X::Syntax::UnquoteOutsideQuasi">]
<EXPR>
'}}}'
}
token term:sym<unquote> { '{{{' <?{ $*IN_QUASI }> <EXPR> '}}}' }

# XXX temporary Bool::True/Bool::False until we can get a permanent definition
token term:sym<boolean> { 'Bool::'? $<value>=[True|False] » }
Expand Down
4 changes: 0 additions & 4 deletions src/core/Exception.pm
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,6 @@ my class X::Syntax::InfixInTermPosition does X::Syntax {
}
}

my class X::Syntax::UnquoteOutsideQuasi does X::Syntax {
method message() { 'Can only use unquote syntax inside a quasi block'; }
}

my class X::Attribute::Package does X::Comp {
has $.package-kind;
has $.name;
Expand Down

0 comments on commit 1b9b70b

Please sign in to comment.