Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix precedence of extension nodes (#6386).

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14710 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
commit 676497f8cfce471771ae16b54c28ff30c980c424 1 parent 99120f2
@alainfrisch alainfrisch authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 parsing/parser.mly
View
4 parsing/parser.mly
@@ -453,6 +453,8 @@ The precedences must be listed from low to high.
%nonassoc below_LBRACKETAT
%nonassoc LBRACKETAT
%nonassoc LBRACKETATAT
+%nonassoc LBRACKETPERCENT
+%nonassoc LBRACKETPERCENTPERCENT
%right COLONCOLON /* expr (e :: e :: e) */
%left INFIXOP2 PLUS PLUSDOT MINUS MINUSDOT /* expr (e OP e OP e) */
%left PERCENT INFIXOP3 STAR /* expr (e OP e OP e) */
@@ -468,7 +470,7 @@ The precedences must be listed from low to high.
%nonassoc BACKQUOTE BANG BEGIN CHAR FALSE FLOAT INT INT32 INT64
LBRACE LBRACELESS LBRACKET LBRACKETBAR LIDENT LPAREN
NEW NATIVEINT PREFIXOP STRING TRUE UIDENT
- LBRACKETPERCENT LBRACKETPERCENTPERCENT
+ /*LBRACKETPERCENT LBRACKETPERCENTPERCENT*/
/* Entry points */
Please sign in to comment.
Something went wrong with that request. Please try again.