]> git.donarmstrong.com Git - lilypond.git/commitdiff
(bare_int): remove rule. From now on, we require
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 23 May 2005 23:23:42 +0000 (23:23 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 23 May 2005 23:23:42 +0000 (23:23 +0000)
# before negative integers.

ChangeLog
lily/parser.yy
scm/lily.scm

index 546fb47f0b912d74335a2ef3b45e974ae44f17b6..19395bd16ba0bd5e209fd867918a81ab2ea4c255 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-24  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/parser.yy (bare_int): remove rule.  From now on, we require
+       # before negative integers. 
+
 2005-05-23  Graham Percival  <gperlist@shaw.ca>
 
        * ly/property.ly: Update tieDotted to have the same form as slurDotted.
@@ -18,7 +23,7 @@
 
        * lily/general-scheme.cc (ly:stderr-redirect): Rename from
        ly:port-move.  Needs to be stderr-specific on mingw.
-       Run fixcc.
+       Run fixcc.
 
 2005-05-20  Jan Nieuwenhuizen  <janneke@gnu.org>
 
index b771f9bb4b60be1eae88c8c7c63b364ad0b640cb..8cf6b01a4008d769030dec029ae3a331aea4b914 100644 (file)
@@ -424,7 +424,6 @@ parser.yy:352.8-24: warning: symbol `"\\<"' used more than once as a literal str
 %type <book> book_block
 %type <book> book_body
 
-%type <i> bare_int
 %type <i> bare_unsigned
 %type <i> bass_mod
 %type <i> dots
@@ -1520,8 +1519,17 @@ scalar: string {
        | LYRICS_STRING {
                $$ = $1;
        }
-        | bare_int {
-               $$ = scm_int2num ($1);
+       | bare_number {
+               $$ = $1;
+/*             if (scm_integer_p ($1) == SCM_BOOL_T)
+               {
+                       int k = scm_to_int (scm_inexact_to_exact ($1));
+                       $$ = k;
+               } else
+               {
+                       THIS->parser_error (@1, _ ("need integer number arg"));
+                       $$ = 0;
+               }*/
        }
         | embedded_scm {
                $$ = $1;
@@ -2485,23 +2493,6 @@ bare_unsigned:
        }
        ;
 
-bare_int:
-       bare_number {
-               if (scm_integer_p ($1) == SCM_BOOL_T)
-               {
-                       int k = scm_to_int ($1);
-                       $$ = k;
-               } else
-               {
-                       THIS->parser_error (@1, _ ("need integer number arg"));
-                       $$ = 0;
-               }
-       }
-       | '-' bare_int {
-               $$ = -$2;
-       }
-       ;
-
 exclamations:
                { $$ = 0; }
        | exclamations '!'      { $$ ++; }
index 1580fe886e57285c42eca2e3f97a9a04becdd786..a8dfba06db35034ae28d9b4fbd9b91c385714045 100644 (file)
@@ -417,4 +417,4 @@ The syntax is the same as `define*-public'."
 (or (not (running-from-gui?))
     (ly:get-option 'safe)
     (define lilypond-main gui-main))
-    (define lilypond-main gui-main)
+; (define lilypond-main gui-main)