Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Language Processing

Name: Anonymous 2011-06-05 12:05

So I am writing a Java program that needs some language parsing. This language parsing is meant to be extended and modified in the near future. The thing is, i already know how to flex/bison this shit, but I think that flex and bison are shit, so I don't want to use them. Alternatives?

tl/dr: flex and bison are shit, what can i use instead?

Name: Anonymous 2011-06-05 13:35

>>13
Pratt parsers seem to be exactly what you want, but there are no pratt parser generators, you'd have to hand-code it (not difficult at all)
Basically, it's an RDP that can gracefully handle operators and precedence.

See:
http://javascript.crockford.com/tdop/tdop.html
http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List