Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Spirit X3, Part I

CppNow via YouTube

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

Reviews

Start your review of Using Spirit X3, Part I

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.