Using Spirit X3, Part I
Offered By: CppNow via YouTube
Course Description
Overview
Explore the fundamentals of Spirit X3, a powerful parsing library for C++14, in this comprehensive conference talk from CppNow. Dive into the world of domain-specific embedded language (DSEL) parsing as Michael Caisse and Joel de Guzman guide you through building grammars, selecting appropriate data structures, and implementing useful patterns. Learn how to capture line numbers, handle context on failures, and solve real-world parsing problems. Discover why Spirit X3 compiles faster, runs faster, and offers a more user-friendly experience compared to its predecessor. Gain insights into concepts such as rules, parsers, character parsers, combining parsers, and attribute synthesis. Master techniques like sequence, pipe, evaluate, clean star, look ahead, and difference expectations. By the end of this talk, you'll be equipped to employ Spirit X3 for all your parsing needs in modern C++ development.
Syllabus
Introduction
Spirit X3
Michael Caisse
What is Spirit
Avoiding Regex
Peg Grammar
Host Question
Spirit Grammar
Concepts
Rules
Parser
Parser Examples
x3parse
Parsers
Character parsers
Combining parsers
Sequence
Pipe
Evaluate
Cleanstar
Look Ahead
Difference
Expectations
Example
String type pairs
Rules overview
Name parser
Auto
Rules are different
Rules are lightweight
Space Skipper
Grammar
Attribute Synthesis
Attribute Compatibility
Taught by
CppNow
Related Courses
Your Favorite Undefined Behavior in C++CppNow via YouTube Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube