> Which of course has a shift/reduce conflict: if the token stream is > [BOLD; TEXT; BOLD; ...], what should the parser do upon encountering > the second BOLD -- start a new nesting level, or close the current > one? I am only a beginner at formal language theory - so might have missed important details. But it seems to me that you may be trying to parse a context-sensitive language with a parser for context-free languages. Changing the parser may help. -- Allan Wegan Jabber: allanwegan@ffnord.net OTR-Fingerprint: E4DCAA40 4859428E B3912896 F2498604 8CAA126F Jabber: allanwegan@jabber.ccc.de OTR-Fingerprint: A1AAA1B9 C067F988 4A424D33 98343469 29164587 ICQ: 209459114 OTR-Fingerprint: 71DE5B5E 67D6D758 A93BF1CE 7DA06625 205AC6EC