3 ms·
Thanks for these links. Another DCG tutorial http://www.pathwayslms.com/swipltuts/dcg/index.html http://www.pathwayslms.com/swipltuts/dcg/index.html
by agumonkey 10y ago
Thanks for these links. Another DCG tutorial http://www.pathwayslms.com/swipltuts/dcg/index.html http://www.pathwayslms.com/swipltuts/dcg/index.html
- dbcurtis 10y agoYour link lightly addresses one of my questions about using DCGs for parsing. How hard is it to get a sensible error message out of a DCG parser? I've basically written off LALR parsers because getting a reasonable error message out of them is about as much fun as repeatedly poking yourself in the eye with a sharp stick. Good old recursive decent using precedence climbing for expressions seems to be more maintainable in the long run for production parsers.