bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Formatting changes.


From: Akim Demaille
Subject: [PATCH] Formatting changes.
Date: Tue, 04 Nov 2008 20:43:58 -0000

        * data/lalr1-fusion.cc, src/parse-gram.y: here.
---
 ChangeLog            |    5 +++++
 data/lalr1-fusion.cc |    6 +++---
 src/parse-gram.y     |   28 ++++++++++++++--------------
 3 files changed, 22 insertions(+), 17 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ed83875..0e20087 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2008-11-04  Akim Demaille  <address@hidden>
 
        Formatting changes.
+       * data/lalr1-fusion.cc, src/parse-gram.y: here.
+
+2008-11-04  Akim Demaille  <address@hidden>
+
+       Formatting changes.
        * data/lalr1-fusion.cc: here.
 
 2008-11-04  Akim Demaille  <address@hidden>
diff --git a/data/lalr1-fusion.cc b/data/lalr1-fusion.cc
index 4c41ade..63bc1d5 100644
--- a/data/lalr1-fusion.cc
+++ b/data/lalr1-fusion.cc
@@ -949,9 +949,9 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
 
        if (yychar <= yyeof_)
          {
-         /* Return failure if at end of input.  */
-         if (yychar == yyeof_)
-           YYABORT;
+            /* Return failure if at end of input.  */
+            if (yychar == yyeof_)
+              YYABORT;
          }
        else
          {
diff --git a/src/parse-gram.y b/src/parse-gram.y
index fa74d8d..745dbc4 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -352,9 +352,9 @@ grammar_declaration:
 ;
 
 
-/*----------*
- | %union.  |
- *----------*/
+/*---------.
+| %union.  |
+`---------*/
 
 %token PERCENT_UNION "%union";
 
@@ -541,14 +541,14 @@ rhs:
 ;
 
 
-/*----------------------------*
- | variable and content.opt.  |
- *---------------------------*/
+/*---------------------------.
+| variable and content.opt.  |
+`---------------------------*/
 
 variable:
   ID
-  | STRING { $$ = uniqstr_new ($1); } /* deprecated and not M4-friendly */
-  ;
+| STRING { $$ = uniqstr_new ($1); } /* deprecated and not M4-friendly */
+;
 
 /* Some content or empty by default. */
 content.opt:
@@ -560,9 +560,9 @@ content.opt:
 ;
 
 
-/*-------------*
- | braceless.  |
- *-------------*/
+/*------------.
+| braceless.  |
+`------------*/
 
 braceless:
   "{...}"
@@ -577,9 +577,9 @@ braceless:
 ;
 
 
-/*---------------*
- | Identifiers.  |
- *---------------*/
+/*--------------.
+| Identifiers.  |
+`--------------*/
 
 /* Identifiers are returned as uniqstr values by the scanner.
    Depending on their use, we may need to make them genuine symbols.  */
-- 
1.6.0.2.588.g3102





reply via email to

[Prev in Thread] Current Thread [Next in Thread]