Bisonc++ (Version 4.08.00) User Guide
Frank B. Brokken
Center for Information Technology,
University of Groningen
Nettelbosje 1,
P.O. Box 11044,
9700 CA Groningen
The Netherlands
2005-2014
Table of Contents
- 3.5.1: Bisonc++: an optionally reentrant Parser
- 4.1.1: Declarations for the `rpn' calculator
- 4.1.2: Grammar rules for the `rpn' calculator
- 4.1.2.1: Explanation of `input'
- 4.1.2.2: Explanation of `line'
- 4.1.2.3: Explanation of `expr'
- 4.1.3: The Lexical Scanner used by `rpn'
- 4.1.4: The Controlling Function `main()'
- 4.1.5: The error reporting member `error()'
- 4.1.6: Running Bisonc++ to generate the Parser
- 4.1.7: Constructing and running `rpn'
- 4.4.1: The Declaration Section for `mfcalc'
- 4.4.2: Grammar Rules for `mfcalc'
- 4.4.3: The `mfcalc' Symbol- and Function Tables
- 4.4.4: The revised `lex()' member
- 4.4.5: Constructing `mfcalc'
- 5.5.1: %baseclass-preinclude: specifying a header included by the baseclass
- 5.5.2: %class-name: defining the name of the parser class
- 5.5.3: %debug: adding debugging code to the `parse()' member
- 5.5.4: %error-verbose: dumping the parser's state stack
- 5.5.5: %expect: suppressing conflict warnings
- 5.5.6: %flex: using the traditional `flex++' interface
- 5.5.7: %include: splitting the input file
- 5.5.8: %left, %right, %nonassoc: defining operator precedence
- 5.5.9: %locationstruct: specifying a dedicated location struct
- 5.5.10: %lsp-needed: using the default location type
- 5.5.11: %ltype: using an existing location type
- 5.5.12: %namespace: using a namespace
- 5.5.13: %negative-dollar-indices: using constructions like $-1
- 5.5.14: %no-lines: suppressing `#line' directives
- 5.5.15: %prec: overruling default precedences
- 5.5.16: %polymorphic: using polymorphism to define multiple semantic values
- 5.5.17: %print-tokens: displaying tokens and matched text
- 5.5.18: %required-tokens: defining the minimum number of tokens between error reports
- 5.5.19: %scanner: using a standard scanner interface
- 5.5.20: %scanner-matched-text-function: define the name of the scanner's member returning the matched texttoken
- 5.5.21: %scanner-token-function: define the name of the scanner's token function
- 5.5.22: %start: defining the start rule
- 5.5.23: %stype: specifying the semantic stack type
- 5.5.24: %token: defining token names
- 5.5.24.1: Improper token names
- 5.5.25: %type: associating semantic values to (non)terminals
- 5.5.26: %union: using a 'union' to define multiple semantic values
- 5.5.27: %weak-tags: %polymorphic declaring 'enum Tag__'
- 5.5.28: Directives controlling the names of generated files
- 5.5.28.1: %baseclass-header: defining the parser's base class header
- 5.5.28.2: %class-header: defining the parser's class header
- 5.5.28.3: %filenames: specifying a generic filename
- 5.5.28.4: %implementation-header: defining the implementation header
- 5.5.28.5: %parsefun-source: defining the parse() function's sourcefile
- 5.5.28.6: %target-directory: defining the directory where files must be written
- 5.6.1: Data Types of Semantic Values
- 5.6.2: More Than One Value Type
- 5.6.3: Polymorphism and multiple semantic values: `%polymorphic'
- 5.6.3.1: The %polymorphic directive
- 5.6.3.2: The %polymorphic and %type: associating semantic values with (non-)terminals
- 5.6.3.3: Code generated by %polymorphic
- 5.6.3.4: A parser using a polymorphic semantic value type
- 5.6.3.5: A scanner using a polymorphic semantic value type
- 5.6.4: Actions
- 5.6.5: Data Types of Values in Actions
- 5.6.6: Actions in Mid-Rule
- 5.7.1: Plain Alternatives
- 5.7.2: One Or More Alternatives, No Separators
- 5.7.3: Zero Or More Alternatives, No Separators
- 5.7.4: One Or More Alternatives, Using Separators
- 5.7.5: Zero Or More Alternatives, Using Separators
- 5.7.6: Nested Blocks
- 6.3.1: `lex()': Interfacing the Lexical Analyzer
- 7.1.1: The FIRST Sets
- 7.1.2: The FOLLOW Sets
- 7.1.3: The States
- 7.1.4: The Lookahead Sets
- 7.1.4.1: Preamble
- 7.1.5: The Final Transition Tables
- 7.1.5.1: Preamble
- 7.1.6: Processing Input
- 7.3.1: When Precedence is Needed
- 7.3.2: Specifying Operator Precedence
- 7.3.3: Precedence Examples
- 7.3.4: How Precedence Works
- 7.3.5: Rule precedence
- 8.1.1: Error Recovery
- 8.1.1.1: Error recovery --debug output