Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
In most programs, you will need different data types for different kinds
of tokens and groupings. For example, a numeric constant may need type
long, while a string constant needs type
and an identifier might need a pointer to an entry in the symbol table.
To use more than one data type for semantic values in one parser, Bison requires you to do two things:
%unionBison declaration (see section The Collection of Value Types).
%tokenBison declaration (see section Token Type Names) and for groupings with the
%typeBison declaration (see section Nonterminal Symbols).
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|