Skip to content

Commit

Permalink
Fix precedence of extension nodes (ocaml#6386).
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14709 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
alainfrisch committed Apr 30, 2014
1 parent 5b8df63 commit 99120f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parsing/parser.mly
Expand Up @@ -453,8 +453,6 @@ The precedences must be listed from low to high.
%nonassoc below_LBRACKETAT %nonassoc below_LBRACKETAT
%nonassoc LBRACKETAT %nonassoc LBRACKETAT
%nonassoc LBRACKETATAT %nonassoc LBRACKETATAT
%nonassoc LBRACKETPERCENT
%nonassoc LBRACKETPERCENTPERCENT
%right COLONCOLON /* expr (e :: e :: e) */ %right COLONCOLON /* expr (e :: e :: e) */
%left INFIXOP2 PLUS PLUSDOT MINUS MINUSDOT /* expr (e OP e OP e) */ %left INFIXOP2 PLUS PLUSDOT MINUS MINUSDOT /* expr (e OP e OP e) */
%left PERCENT INFIXOP3 STAR /* expr (e OP e OP e) */ %left PERCENT INFIXOP3 STAR /* expr (e OP e OP e) */
Expand All @@ -470,6 +468,7 @@ The precedences must be listed from low to high.
%nonassoc BACKQUOTE BANG BEGIN CHAR FALSE FLOAT INT INT32 INT64 %nonassoc BACKQUOTE BANG BEGIN CHAR FALSE FLOAT INT INT32 INT64
LBRACE LBRACELESS LBRACKET LBRACKETBAR LIDENT LPAREN LBRACE LBRACELESS LBRACKET LBRACKETBAR LIDENT LPAREN
NEW NATIVEINT PREFIXOP STRING TRUE UIDENT NEW NATIVEINT PREFIXOP STRING TRUE UIDENT
LBRACKETPERCENT LBRACKETPERCENTPERCENT




/* Entry points */ /* Entry points */
Expand Down

0 comments on commit 99120f2

Please sign in to comment.