Better error handling using Flex and Bison
Tips for building more user-friendly compilers and interpreters
From the developerWorks archives
Date archived: April 18, 2019 | First published: July 28, 2006
Although it is easy to generate programs using Flex and Bison, it is a bit harder to make those programs produce user-friendly syntax and semantic error messages. This article examines the error-handling features of Flex and Bison, shows how to use them, and details some pitfalls.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.