help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison deterministic LALR parser for C++ (kind of complex langauge) w


From: Hans Aberg
Subject: Re: Bison deterministic LALR parser for C++ (kind of complex langauge) without 'lexar hack' support
Date: Fri, 17 Aug 2012 15:52:45 +0200

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 to return just one lexical token (say
> IDENTIFIER) from the lexer for both type references as well as non-type
> variable references.
> 
> Given these restrictions, I was wondering if it would be a wise decision
> (or if it is even possoble) to use yacc/bison for my parser (given that I
> may not have the flexibility to use GLR for performance reasons)…?

You might check with the Usenet newsgroup comp.compilers.

At least an earlier revision of C++ is Yaccable:
  http://www.parashift.com/c++-faq-lite/yaccable-grammar.html

Hans





reply via email to

[Prev in Thread] Current Thread [Next in Thread]