Backus Naur Form Beispiel
Bnf backus naur form is a syntactic metalanguage i e a language about a language.
Backus naur form beispiel. Bnf was originally developed by john backus and subsequent contribution from peter naur to describe the syntax of algol 60 programming. Backus naur notation shortly bnf is a formal mathematical way to describe a language to the backus naur form is a way of defining syntax. And non terminals which can be expanded into one or more terminals and non terminals. The variant used in this tutorial is as follows.
The syntax in this reference is presented in a simple variation of backus naur form bnf that uses the following symbols and conventions. This is a short introduction to the backus naur form of describing a context free grammar with some simple examples. Postal address name part street address zip part name part persona1 part last name opt suffix part eol. Like the bnf is given for a postal address can see below.
The metalanguage is a formal notation for specifying the grammar that describes the syntax of a programming language. The text descriptions are a simple variant of backus naur form bnf syntax that includes the symbols and conventions explained in table b 1. Find out more about how this works in today s random wedne. Symbol or convention description brackets enclose optional items.
Braces enclose a choice of items only one of which is required. Backus naur form bnf is a notation for expressing the grammar of a language in the form of production rules. For instance in. Bnf or backus naur form is an elegant and succinct way of expressing a grammar in very few lines.
Each graphic syntax diagram in this book is followed by a link to a text description of the graphic. The standard technique for defining the syntax of a computer language is to use backus naur form bnf. Qlikview backus naur form examples. B backus naur form syntax.