Related articles |
---|
Applications using Lex/Flex & Yacc/Bison parthaspanda2005@yahoo.com (Partha S Panda) (2013-11-07) |
Re: Applications using Lex/Flex & Yacc/Bison tdk@thelbane.com (Timothy Knox) (2013-11-08) |
Re: Applications using Lex/Flex & Yacc/Bison DrDiettrich1@aol.com (Hans-Peter Diettrich) (2013-11-09) |
Re: Applications using Lex/Flex & Yacc/Bison acolvin@efunct.com (mac) (2013-11-13) |
Re: Applications using Lex/Flex & Yacc/Bison tero.koskinen@iki.fi (Tero Koskinen) (2013-12-05) |
From: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
Newsgroups: | comp.compilers |
Date: | Sat, 09 Nov 2013 05:42:52 +0100 |
Organization: | Compilers Central |
References: | 13-11-006 |
Keywords: | lex, yacc |
Posted-Date: | 10 Nov 2013 09:17:17 EST |
Partha S Panda schrieb:
> Hi,
>
> I am trying to figure out hardware or software applications other then
> compiler-related that utilize yacc/bison and lex/flex respectively.
Do you mean existing programs, or what *could* be done?
Most applications I know of use other parsers, not lex/yacc. It would be
interesting, though, *why* they use other parsers. I could imagine that
e.g. counting words or sentences in natural language text could be done
using lex/yacc, but would be easier to accomplish, and faster, by other
parser techniques.
In general lex/yacc allows to parse whatever can be represented in an LR
(LALR(1)?) grammar, but not all grammars are acceptable due to
restrictions (ambigous...). This could be any formatted data, like BNF,
HTML, RTF, TEX, phonebooks, log files, man/info files, or (textual)
output of many other programs. I'm not sure whether binary data can be
parsed as well, it may be necessary to modify lex/flex for that purpose.
Many other parsers come with example grammars that can *not* be used
with lex/yacc.
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.