]> git.donarmstrong.com Git - lilypond.git/commitdiff
Parser: remove unused operator priorities
authorDavid Kastrup <dak@gnu.org>
Thu, 17 Oct 2013 18:21:24 +0000 (20:21 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 19 Oct 2013 19:37:30 +0000 (21:37 +0200)
lily/parser.yy

index ce65961e4a07f29674c5c71e1aff247bbfb8a80d..b54191d8390a1e6494efaef27a3b19506d6611d6 100644 (file)
@@ -80,33 +80,13 @@ or
 %nonassoc COMPOSITE
 %left ADDLYRICS
 
- /* ADDLYRICS needs to have lower precedence than argument scanning,
-  * or we won't be able to tell music apart from closed_music without
-  * lookahead in the context of function calls.
-  */
+%right ':' UNSIGNED REAL
 
-%nonassoc DEFAULT
-
- /* \default is only applied after exhausting function arguments */
-
-%nonassoc FUNCTION_ARGLIST
-
- /* expressions with units are permitted into argument lists */
-
-%right PITCH_IDENTIFIER NOTENAME_PITCH TONICNAME_PITCH
-      UNSIGNED REAL DURATION_IDENTIFIER ':'
-
- /* The above are the symbols that can start optional function arguments
-    that are recognized in the grammar rather than by predicate
+ /* The above are needed for collecting tremoli greedily, and together
+    with the next rule for putting together numbers and units
  */
 
-%nonassoc NUMBER_IDENTIFIER '/'
-
- /* Number-unit expressions, where permitted, are concatenated into
-  * function arguments, just like fractions and tremoli.  Tremoli must
-  * not have higher precedence than UNSIGNED, or Lilypond will not
-  * join ':' with a following optional number.
-  */
+%nonassoc NUMBER_IDENTIFIER
 
 %left PREC_TOP