Lexy: A DSL Library For C++ Parsing

By Jonathan Müller

lexy is a C++ parsing library; it’s essentially syntax sugar for a handwritten recursive descent parser, where you have full control over alternatives and backtracking. It supports Unicode as well as binary inputs, has good error messages on invalid input with automatic error recovery, and is able to store the result in arbitrary data structures or as a lossless parse tree. This talk gives an overview on how to use lexy, how it works, and why it is designed the way it is. I’ll also share various template meta programming tricks, talk about designing embedded DSLs in C++, and discuss shortcomings of C++'s iterator model and benefits of sender/receiver style continuations.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.