Context Dependency
Previous: <Error Recovery=>ErrorRecov> * Next: <Debugging=>Debugging> * Up: <Top=>!Root>

#Wrap on
{fH2}Handling Context Dependencies{f}

The Bison paradigm is to parse tokens first, then group them into larger
syntactic units.  In many languages, the meaning of a token is affected by
its context.  Although this violates the Bison paradigm, certain techniques
(known as {fUnderline}kludges{f}) may enable you to write Bison parsers for such
languages.

#Wrap off
<Semantic Tokens=>SemanticTo>:   Token parsing can depend on the semantic context.
<Lexical Tie-ins=>LexicalTie>:   Token parsing can depend on the syntactic context.
<Tie-in Recovery=>TieinRecov>:   Lexical tie-ins have implications for how
                        error recovery rules must be written.
#Wrap on

(Actually, ``kludge'' means any technique that gets its job done but is
neither clean nor robust.)

