2 ms·
(Love your metaphors/adjectives.) Grammars aren't easy, but not currently no harder than XSD. Further, DSLs are all the rage. Personally, I prefer to use a pro
by specialist 15y ago
(Love your metaphors/adjectives.)
Grammars aren't easy, but not currently no harder than XSD. Further, DSLs are all the rage. Personally, I prefer to use a pro tool like ANTLR to some in language voodoo with Scale (or some such).
LALR (lex/yacc) kicked my ass. Just could not understand it.
LL(k) (ANTLR 2.x, JavaCC) was a struggle. But I slogged thru it.
LL(*) (ANTLR 3.x) is a pleasure to work with. I really enjoy it. For example, the delta between SQL's (idealized) BNF and my SQL ANTLR grammar is very small.
ANTLR 4.x, currently in progress, will do left recursion, which I haven't played with yet.
I'm not too worried about adoption. My tools make me more productive. If my competitors choose to use rocks for hammering, I'm okay with it.
Lastly, I indent with tabs. Old habits die hard. :)