mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
* doc/bison.texinfo: Use $' as shell prompt, not %'.
Use @kbd to denote user input. (Language and Grammar): ANSIfy the example. Adjust its layout for info/notinfo. (Location Tracking Calc): Output error messages to stderr. Output locations in a more GNUtically correct way. Fix a couple of Englishos. Adjust @group/@end group pairs.
This commit is contained in:
@@ -709,12 +709,11 @@ matter of lexicography, not grammar.)
|
||||
Here is a simple C function subdivided into tokens:
|
||||
|
||||
int /* keyword `int' */
|
||||
square (x) /* identifier, open-paren, */
|
||||
/* identifier, close-paren */
|
||||
int x; /* keyword `int', identifier, semicolon */
|
||||
square (int x) /* identifier, open-paren, identifier,
|
||||
identifier, close-paren */
|
||||
{ /* open-brace */
|
||||
return x * x; /* keyword `return', identifier, */
|
||||
/* asterisk, identifier, semicolon */
|
||||
return x * x; /* keyword `return', identifier, asterisk,
|
||||
identifier, semicolon */
|
||||
} /* close-brace */
|
||||
|
||||
The syntactic groupings of C include the expression, the statement,
|
||||
|
||||
Reference in New Issue
Block a user