Re: [CEDET-devel] Wisent and Lex
Brought to you by:
zappo
From: David P. <dav...@wa...> - 2003-03-26 09:09:04
|
> I finally tracked down yet another lexical problem I was having. > This time I had forgotten to add `semantic-lex-string' to my lexer. > It turned out strings only occurred inside a semantic-list. The > error thrown for unknown syntax was captured by wisent, and the > resultant parsing pattern was very strange and did not reveal the > inner problem in a rational way. > > I'm guessing the bovine parser may do the same thing. I can see two > ways to help promote the lexical error where a developer can see it > when it would be useful. > > 1) Create a new error symbol we can throw with `signal' that a > traditional `condition-case' element would miss. > > 2) Use `throw' to throw lexical errors out to a point where they can > be reported. > > Thoughts? I must admit I don't clearly see the problem. It would be nice if you could provide a small example. > In the meantime, I have just finished the first pass on my first > wisent parser. Yay! Yay ;) David |