On Donnerstag, 2. Oktober 2008, Andrew Johnson wrote:
> Other warnings are from
> code generated by flex and/or antelope, which we didn't write and are not
> programs I want to look inside if I don't have to.
I recently discovered a nice alternative to yacc/bison/antelope which is
called Lemon, see http://www.hwaci.com/sw/lemon/ . It is used e.g. in
sqlite to parse SQL. Here are the highlights (from the home page):
* Lemon using a different grammar syntax which is less prone to
programming errors.
* The parser generated by Lemon is both re-entrant and thread-safe.
* Lemon includes the concept of a non-terminal destructor, which
makes it much easier to write a parser that does not leak memory.
IIRC, EPICS has made changes to (its own copy of) antelope in order to
address points 2 and 3 above.
I should add that lemon creates code with a nice and clear procedure based
API, and that it does not contain a lexer generator (however, there is re2c
for that).
Cheers
Ben
- References:
- Base R3.14.10-RC1 Released Andrew Johnson
- Re: Base R3.14.10-RC1 Released J. Lewis Muir
- Re: Base R3.14.10-RC1 Released Andrew Johnson
- Navigate by Date:
- Prev:
Re: devStats - OSI version of devVxStats Andrew Johnson
- Next:
Re: Base R3.14.10-RC1 Released J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Base R3.14.10-RC1 Released Andrew Johnson
- Next:
Re: Base R3.14.10-RC1 Released J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|