Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.72 KB

definitions-and-conventions.md

File metadata and controls

45 lines (36 loc) · 1.72 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Definitions and Conventions | Microsoft Docs
11/04/2016
cpp-language
article
C++
nonterminals definition
f9b3cf5f-6a7c-4a10-9b18-9d4a43efdaeb
6
mikeblome
mblome
ghogen

Definitions and Conventions

Terminals are endpoints in a syntax definition. No other resolution is possible. Terminals include the set of reserved words and user-defined identifiers.

Nonterminals are placeholders in the syntax and are defined elsewhere in this syntax summary. Definitions can be recursive.

An optional component is indicated by the subscripted opt. For example,

  
{  
expression <SUB>opt</SUB> }  

indicates an optional expression enclosed in braces.

The syntax conventions use different font attributes for different components of the syntax. The symbols and fonts are as follows:

Attribute Description
nonterminal Italic type indicates nonterminals.
const Terminals in bold type are literal reserved words and symbols that must be entered as shown. Characters in this context are always case sensitive.
opt Nonterminals followed by opt are always optional.
default typeface Characters in the set described or listed in this typeface can be used as terminals in C statements.

A colon (:) following a nonterminal introduces its definition. Alternative definitions are listed on separate lines, except when prefaced with the words "one of."

See Also

C Language Syntax Summary