Skip to main content

Module dialect

Module dialect 

Source
Expand description

Lexical dialect descriptions for the C language family.

C and C++ share almost all of their lexical structure; what differs is the keyword set, the operator inventory and a handful of literal forms. A Dialect captures exactly those differences, so one lexer and one unit-boundary detector serve both languages. The C dialect lives here; the C++ dialect is defined by the C++ frontend crate on top of the same machinery.

Structs§

Dialect
The lexical parameters distinguishing one C-family language from another.

Constants§

C
The C dialect.