Re: Bison deterministic LALR parser for C++ (kind of complex langauge) without 'lexar hack' support

2012-08-17 Thread Hans Aberg
This is a list for help with with Bison, so you may not get any replies here. Your description is rather vague, and rather than describing a problem, you present your solution. If it is a known language, there are good reasons somebody else has made hacks for that. It seems that you have alread

Re: Bison deterministic LALR parser for C++ (kind of complex langauge) without 'lexar hack' support

2012-08-17 Thread A D
Thanks Hans, but I am not really looking for a C++ grammar. I need to write a parser for some other object oriented language, which is as complex as C++/Java. And to complicate the matter further, this langauge has special constructs that doesn't allow me to use the symbol table for distinguishin

Re: Bison deterministic LALR parser for C++ (kind of complex langauge) without 'lexar hack' support

2012-08-17 Thread Hans Aberg
On 17 Aug 2012, at 07:47, A D wrote: > I need to write a parser for a programming langauge which is as complex as > C++, and to even complicate the matter, there are constructs in this > langauge that doesn't allow me to use type/identifier dis-ambiguating lexer > hack. In other words, I will have

Bison deterministic LALR parser for C++ (kind of complex langauge) without 'lexar hack' support

2012-08-17 Thread A D
I need to write a parser for a programming langauge which is as complex as C++, and to even complicate the matter, there are constructs in this langauge that doesn't allow me to use type/identifier dis-ambiguating lexer hack. In other words, I will have to return just one lexical token (say IDENTIF