[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Same rule file in two different application.
From: |
Hans Aberg |
Subject: |
Re: Same rule file in two different application. |
Date: |
Fri, 17 Nov 2006 11:59:06 +0100 |
On 16 Nov 2006, at 12:53, rathishps sukumaran nair wrote:
Is there is any way to use the same rule file in two
different systems?
I wrote a rule file for one application. Now I want to support
this in a
different application with some additional tokens, keywords and
rules. I
added some keywords in the rule file and if that keywords are
present in the
old application, the parsing is failed in the old application. Is
there is
any way to overcome this scenario? or I have to use different
rule files for
different applications?
It depends on whether you need two different programs or is
content with one,
able to do two different pareses. In the former case, you
need to somehow create
two different .y files; in the latter, you might try
introduce some runtime
start-tokens into a single grammar. The Bison FAQ may have
something about it.
Hans Aberg