EBNF notation

Overview ››
Parent Previous Next

This document uses a simplified EBNF (Extender Backus-Naur Form) style for syntax definitions:



Examples:


array-type =

ARRAY "[" array-index-declaration "]" OF element-type .        

array-index-declaration =

ordinal-constant | subrange | enumeration .

enumeration =

enumeration-type | "(" identifier-list ")" .

subrange =

subrange-type | lower-bound ".." upper-bound .

lower-bound =

ordinal-constant .
upper-bound =

ordinal-constant .
ordinal-constant =

boolean-constant | integer-constant | char-constant .

identifier-list =

identifier { "," identifier } .