Jerrad Genson
Jerrad Genson

Reputation: 120

Lexing and Parsing Utilities

I'm looking for lexical analysis and parser-generating utilities that are not Flex or Bison. Requirements:

I have my eye on ANTLR, although I have never used it. Comments to that effect are appreciated. Let me know what your favorite utilities are that meet these requirements, and why you would recommend them.

Upvotes: 5

Views: 1455

Answers (3)

Ira Baxter
Ira Baxter

Reputation: 95324

NL text tends have to lots of ambiguity. If you want to parse natural langauge, I don't think any of the classic compiler-type parser generators (LALR, LL [including ANTLR]) will help you much, and compiler type parser generators typically don't handle this at all.

A GLR parser, which does handle ambiguity, may be of some use; bison offers this as an option.

Upvotes: 1

SK-logic
SK-logic

Reputation: 9714

There is a list of modern Packrat parsers here.

Upvotes: 2

C. K. Young
C. K. Young

Reputation: 223003

Guile 2.0 (to be released in about a few days) has an LALR(1) parsing library.

Upvotes: 0

Related Questions