From 3c26260608b5f536670d5b68479e7471395d4801 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 25 Jul 2008 21:29:43 +0200 Subject: [PATCH] Formatting changes. * 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 ed83875d..0e20087a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-04 Akim Demaille + + Formatting changes. + * data/lalr1-fusion.cc, src/parse-gram.y: here. + 2008-11-04 Akim Demaille Formatting changes. diff --git a/data/lalr1-fusion.cc b/data/lalr1-fusion.cc index 4c41ade4..63bc1d5a 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 fa74d8d8..745dbc4e 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. */ -- 2.45.2