Pseudo-grammar

From Appmethod Topics
Jump to: navigation, search

Go Up to The Preprocessor Index


The following grammar is used to describe the syntax of C++ lexical elements:

Notation Description
{a|b} Either a or b
[a] a is optional
N Number
STR String
SYM Symbol name
FUNC Function name
EXPR C or C++ expression
TYPE C or C++ type
OPT Compiler option
... A list may follow

The pseudo-grammar is used in #pragma directives.