Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Nonterminals

Notation

Attr

Synthesized attribute. The rule return type.

ID

The rule ID

r, r2

Rules

r_def, r2_def

A rule definition. By convention a rule named r should have corresponding rule definition named r_def

p

A parser expression

Expression

Description

rule<ID, Attr> const r = name;

Rule declaration. ID is required. Attr is optional and defaults to unused_type. name is an optional string that gives the rule its name, useful for debugging and error handling.

r.name()

Getting the name of a rule

auto const r_def = p;

Rule definition

BOOST_SPIRIT_DEFINE(r, r2, ...)

Links one or more rules (r, r2, ...) with their definitions (r_def, r2_def, ...)


PrevUpHomeNext