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?
>>1,4 i
This is why. Also, you don't give enough context: depending on what you're doing, even an hand-coded RDP may be enough.
Name:
Anonymous2011-06-05 12:34
>>6
stop being autistic. if you understood what he meant it doesnt matter how he presented it.
Name:
Anonymous2011-06-05 12:36
>>6
It's an input system for an experimental logic framework. I need it for getting the conditions of reasoning for the system, and hand-coded is not an option for my boss because it is not ENTERPRISE enough.
>>7
What kind of language is he going to parse? Natural language? A DSL? A programming language? Is its grammar context-free? Is the grammar left recursive? Is the grammar ambiguous? Not enough context.
>>8
Well, if you can't hand-code it, and you must do it in Java, the only lexer/parser generators that output Java code that I know are JFlex, JLex and bison.
>>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.