help-bison
[Top][All Lists]
Advanced

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

Re: C++ try/catch


From: Hans Aberg
Subject: Re: C++ try/catch
Date: Thu, 29 Sep 2005 17:58:49 +0200

On 29 Sep 2005, at 14:25, Hans Yperman wrote:

I can't use the C++ parsers, as I want the code to work on both past
and future versions of bison.

There is no support for past Bison versions. The best distribution policy is to include compiled files, and let those that

I want to have a C++  try/catch block around every rule in a bison
script.

And the C-parser will never have such support for that, even though it seems reasonable that the C++ parser should have it. Also note that the C parser-stack does not invoke copy constructors, so you can only run it with C++ POD's.

Right now, I do:

The simplest way is to tweak the skeleton file, and include it using startup argument --skeleton. Different Bison versions, though, use different skeleton files and formats.

  Hans Aberg






reply via email to

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