For faster navigation, this Iframe is preloading the Wikiwand page for Extended Backus-Naur Form.

Extended Backus-Naur Form

L'Extended Backus-Naur Form (EBNF) (forme étendue de Backus-Naur en français) est une extension du métalangage BNF, proposée entre autres par Niklaus Wirth en 1977. Cette forme permet de condenser la notation BNF et de la rendre plus lisible.

Niklaus Wirth créa cette forme de Backus-Naur lorsqu'il créa le langage Pascal dans les années 1970.

Une autre syntaxe est reprise dans la norme ISO 14977[1] de 1996. Elle est disponible gratuitement sous forme électronique en anglais[2].

Le W3C utilise encore une autre syntaxe[3] de la forme étendue de Backus-Naur pour le langage XML.

1. La norme ISO se fonde sur les conventions suivantes :

  • chaque symbole non terminal de l'EBNF est écrit comme un ou plusieurs mots joints par un trait d'union ;
  • sauf s'il se termine par « -symbol », c'est alors un terminal.

2. Les caractères représentant les opérateurs sont les suivants (par ordre de priorité croissante) :

* répétition
- absence
, concaténation
| choix
= définition
; terminaison

3. La priorité normale est substituée par les paires suivantes :

´  terminal ambigu  ´
"  terminal ambigu  "
(* commentaire *)
(  groupe  )
[  groupe optionnel  ]
{  groupe répété  }
?  séquence spéciale  ?

Exemples de règles :

aa = "A";
bb = 3 * aa, "B";
cc = 3 * [aa], "C";
dd = {aa}, "D";
ee = aa, {aa}, "E";
ff = 3 * aa, 3 * [aa], "F";
gg = {3 * aa}, "G";

Chaînes définies par les règles ci-dessus :

aa: A
bb: AAAB
cc: C AC AAC AAAC
dd: D AD AAD AAAD AAAAD etc.
ee: AE AAE AAAE AAAAE AAAAAE etc.
ff: AAAF AAAAF AAAAAF AAAAAAF
gg: G AAAG AAAAAAG etc.

Bibliographie

[modifier | modifier le code]

Liens externes

[modifier | modifier le code]

Références

[modifier | modifier le code]

(en) Cet article contient des extraits de la Free On-line Dictionary of Computing qui autorise l'utilisation de son contenu sous licence GFDL.

{{bottomLinkPreText}} {{bottomLinkText}}
Extended Backus-Naur Form
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?