Parser Generator Options

If you are writing a new parser from scratch, and want to create a PSI AST with the least effort, what options are available?

In an ideal world I'd probably use ANTLR, but that requires significant extra effort to create a PSI tree, if I understand correctly.

4 comments

Thanks Denis -- I've been looking at that. A short tutorial in the grammar definition syntax would be handy. (and my apologies for putting this thread in Users instead of Plugin Dev)

0

On Thu, 03 Nov 2011 06:54:39 MSK, Tom Davies <no_reply@jetbrains.com>
wrote, quoted or indirectly quoted someone who said :

>f you are writing a new parser from scratch, and want to create a PSI AST with the least effort, what options are available?

I think ANTLR is the main one, but there are others.  See
http://mindprod.com/jgloss/parser.html
http://mindprod.com/jgloss/javacc.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
Capitalism has spurred the competition that makes CPUs faster and
faster each year, but the focus on money makes software manufacturers
do some peculiar things like deliberately leaving bugs and deficiencies
in the software so they can soak the customers for upgrades later.
Whether software is easy to use, or never loses data, when the company
has a near monopoly, is almost irrelevant to profits, and therefore
ignored. The manufacturer focuses on cheap gimicks like dancing paper
clips to dazzle naive first-time buyers. The needs of existing
experienced users are almost irrelevant. I see software rental as the
best remedy.

0

Please sign in to leave a comment.