Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

EBNF

< >

EBNF, aka extended Backus-Naur form, is a grammar language created in 1977 by Niklaus Wirth.

#441on PLDB 47Years Old 0Repos
Wikipedia

In computer science, extended Backus-Naur form (EBNF) is a family of metasyntax notations, any of which can be used to express a context-free grammar. EBNF is used to make a formal description of a formal language which can be a computer programming language. They are extensions of the basic Backus–Naur form (BNF) metasyntax notation. Read more on Wikipedia...


Example from Linguist:
(* Source: https://github.com/io7m/jsom0 License: ISC *) digit_without_zero = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ; digit = "0" | digit_without_zero ; positive = digit_without_zero , { digit } ; natural = "0" | positive ; real = [ "-" ] , digit , [ "." , { digit } ] ;
Example from Wikipedia:
function application = list( symbol, { expression } );

Language features

Feature Supported Example Token
Comments âś“ (* A comment *)
MultiLine Comments âś“ (* A comment *) (* *)
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0