Skip to content

What is Pegium?

Pegium is an open source language engineering toolkit for C++20. It helps you build textual languages with first-class support for parsing, AST/CST construction, references, validation, formatting, and language-server features.

The core idea is simple: language tooling in C++ should feel like framework work, not like assembling unrelated parser, workspace, and editor pieces by hand.

Where to go from here?

Features

If you want a closer look at the capabilities Pegium provides out of the box, continue with the features page.

Showcases

If you want to see Pegium in action before diving into the API, browse the showcases page and the shipped examples.

Learn Pegium

If you want the recommended step-by-step path for building a language, continue with the learn section.

More details

If you already understand the workflow and need precise concepts, continue with the reference section.

If you are looking for a targeted guide rather than a linear tutorial, head to the recipes section.

If you are still unsure where to begin, open Choose Your Path.