[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: use @group to improve page breaking
From: |
Akim Demaille |
Subject: |
[PATCH] doc: use @group to improve page breaking |
Date: |
Tue, 5 Feb 2013 11:44:52 +0100 |
* doc/bison.texi: here.
---
doc/bison.texi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/doc/bison.texi b/doc/bison.texi
index 1218b58..39e84e7 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -1538,6 +1538,7 @@ calculator. As in C, comments are placed between
@samp{/address@hidden/}.
@example
/* Reverse polish notation calculator. */
address@hidden
address@hidden
#define YYSTYPE double
#include <stdio.h>
@@ -1545,6 +1546,7 @@ calculator. As in C, comments are placed between
@samp{/address@hidden/}.
int yylex (void);
void yyerror (char const *);
address@hidden
address@hidden group
%token NUM
@@ -2857,21 +2859,27 @@ can be done with two @var{Prologue} blocks, one before
and one after the
@code{%union} declaration.
@example
address@hidden
address@hidden
#define _GNU_SOURCE
#include <stdio.h>
#include "ptypes.h"
address@hidden
address@hidden group
address@hidden
%union @{
long int n;
tree t; /* @address@hidden is defined in @file{ptypes.h}.} */
@}
address@hidden group
address@hidden
address@hidden
static void print_token_value (FILE *, int, YYSTYPE);
#define YYPRINT(F, N, L) print_token_value (F, N, L)
address@hidden
address@hidden group
@dots{}
@end example
@@ -2903,21 +2911,27 @@ location, or it can be one of @code{requires},
@code{provides},
Look again at the example of the previous section:
@example
address@hidden
address@hidden
#define _GNU_SOURCE
#include <stdio.h>
#include "ptypes.h"
address@hidden
address@hidden group
address@hidden
%union @{
long int n;
tree t; /* @address@hidden is defined in @file{ptypes.h}.} */
@}
address@hidden group
address@hidden
address@hidden
static void print_token_value (FILE *, int, YYSTYPE);
#define YYPRINT(F, N, L) print_token_value (F, N, L)
address@hidden
address@hidden group
@dots{}
@end example
@@ -2969,16 +2983,20 @@ Let's go ahead and add the new @code{YYLTYPE}
definition and the
@} YYLTYPE;
@}
address@hidden
%union @{
long int n;
tree t; /* @address@hidden is defined in @file{ptypes.h}.} */
@}
address@hidden group
address@hidden
%code @{
static void print_token_value (FILE *, int, YYSTYPE);
#define YYPRINT(F, N, L) print_token_value (F, N, L)
static void trace_token (enum yytokentype token, YYLTYPE loc);
@}
address@hidden group
@dots{}
@end example
--
1.8.1.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] doc: use @group to improve page breaking,
Akim Demaille <=