Skip to content

Commit

Permalink
[nqp]:
Browse files Browse the repository at this point in the history
* Add low-precedence infix:<and> and infix:<or>     (cognominal++)
* Patch courtesy Stéphane Payrard <cognominal at gmail.com>


git-svn-id: https://svn.parrot.org/parrot/trunk@27647 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
pmichaud committed May 19, 2008
1 parent b087d2d commit 7aa44e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compilers/nqp/src/Grammar.pg
Expand Up @@ -487,3 +487,11 @@ proto infix:<,> is looser(infix:<:=>)
is nullterm
{ ... }

## loose logical operators
proto infix:<and> is looser(infix:<,>)
is pasttype('if')
{ .... }

proto infix:<or> is looser(infix:<and>)
is pasttype('unless')
{ ... }

0 comments on commit 7aa44e3

Please sign in to comment.