5 ms·
> But now I've just polluted my once-pristine grammar file What's bollixed up your grammar file are the users who absolutely insist on not writing syntacticall
by tempguy9999 7y ago
> But now I've just polluted my once-pristine grammar file
What's bollixed up your grammar file are the users who absolutely insist on not writing syntactically perfect programs every time.
Your 2nd example is still cleaner than writing a hand parser that does the same thing, surely? A slightly mucky DSL has got to be cleaner, clearer, shorter and so more maintainable than a handwritten equivalent, no?
What would you want the grammar language to look like that handled errors 'properly'?