0% found this document useful (0 votes)
36 views1 page

An LC - Letter in Turn Is Any of The Single Characters 'A' Through 'Z'

This document defines the syntax rules for a naming notation. It specifies that a name is made up of a lowercase letter followed by zero or more lowercase letters or underscores. Various symbols are used to denote meanings: vertical bars separate alternatives, asterisks mean zero or more repetitions, plus signs mean one or more repetitions, square brackets mean zero or one optional occurrences, parentheses are for grouping, and literal strings are in quotes. Ranges of characters are denoted with start and end characters separated by three dots. Angular brackets provide informal descriptions.

Uploaded by

Mike
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

An LC - Letter in Turn Is Any of The Single Characters 'A' Through 'Z'

This document defines the syntax rules for a naming notation. It specifies that a name is made up of a lowercase letter followed by zero or more lowercase letters or underscores. Various symbols are used to denote meanings: vertical bars separate alternatives, asterisks mean zero or more repetitions, plus signs mean one or more repetitions, square brackets mean zero or one optional occurrences, parentheses are for grouping, and literal strings are in quotes. Ranges of characters are denoted with start and end characters separated by three dots. Angular brackets provide informal descriptions.

Uploaded by

Mike
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

name ::= lc_letter (lc_letter | "_")*

a name is an lc_letter followed by a sequence of zero or more lc_letters and underscores

lc_letter ::= "a"..."z"


An lc_letter in turn is any of the single characters 'a' through 'z'.

Each rule begins with a name (which is the name defined by the rule) and ::=

A vertical bar (|) is used to separate alternatives; it is the least binding operator in this notation.

A star (*) means zero or more repetitions of the preceding item

A plus (+) means one or more repetitions

A phrase enclosed in square brackets ( [ ] ) means zero or one occurrences (in other words, the enclosed phrase
is optional)

The * and + operators bind as tightly as possible;


Parentheses () are used for grouping
Literal strings are enclosed in quotes
White space is only meaningful to separate tokens

Rules are normally contained on a single line;


Rules with many alternatives may be formatted alternatively with each line after the first beginning with a
vertical bar.

Two literal characters separated by three dots (...) mean a choice of any single character in the given (inclusive)
range of ASCII characters

A phrase between angular brackets (<...>) gives an informal description of the symbol defined;
e.g., this could be used to describe the notion of ‘control character’ if needed.

Confidential C

You might also like