bison-patches
[Top][All Lists]
Advanced

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

Re: Interactive parsing with Bison


From: Paul Eggert
Subject: Re: Interactive parsing with Bison
Date: Wed, 05 Jul 2006 21:21:35 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Satya <address@hidden> writes:

> Of course Java has definitely better (in fact excellent) support for
> all these and more (as demonstrated by SableCC - an LALR parser
> generator written in Java). But it would be incredibly slow

But Bison itself is already "incredibly slow", due to its M4 component.
It's hard to imagine a Java-based implementation being slower.

Anyway, low-level efficiency in the parser generator is no longer of
practical importance.  Any mainstream language ought to be fast enough
to execute Bison itself.

Bison-generated parsers are another matter, of course; here we must
continue to support at least C and C++, for backward-compatibility
reasons.  If we were to switch implementation languages (and I still
think this unlikely), we'd switch only from the C+M4 used to implement
Bison itself, not from the C and C++ code that Bison generates.




reply via email to

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