[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: 2 grammars, 1 lexer
From: |
Urdaneta, Alfonso E (N-Summitt Technologies) |
Subject: |
RE: 2 grammars, 1 lexer |
Date: |
Thu, 12 Feb 2004 17:54:40 -0500 |
> Alternatively, use two start states with your lexer (one per
> grammer), two sets of disjoint token names, and an initial
> grammar rule that depends on the first token read. (See the
> O'Reilly "Lex & Yacc" book for details.)
gaaah. I feel stupid for not thinking of that.
I ended up just breaking them up in two. I'm parsing a language that is
used to program a signal generator for some automated test equipment,
and I now have (in that language) the C equivalent of a .h parser and a
.c parser.
Oh well, maybe I'll put them back together in the future. :)
--
alfonso e. urdaneta
Answer: No
Question: Should I reply before the quote?
- 2 grammars, 1 lexer, Urdaneta, Alfonso E (N-Summitt Technologies), 2004/02/11
- RE: 2 grammars, 1 lexer, Xinan Tang, 2004/02/11
- RE: 2 grammars, 1 lexer,
Urdaneta, Alfonso E (N-Summitt Technologies) <=