sponsor Vim development Vim logo Vim Book Ad

ebnf.vim : Extended BNF (ISO/IEC 14977) Syntax

 script karma  Rating 13/8, Downloaded by 1777    Comments, bugs, improvements  Vim wiki

created by
Hans Fugal
 
script type
syntax
 
description
Syntax file for EBNF as specified by ISO/IEC 14977 : 1996(E)

EBNF is slightly different from most homegrown BNF.  Terminals are always quoted, non-terminals are not (and may contain spaces). Kleene closure is achieved by enclosing with braces, 0-or-1 matches with brackets, 1-or-more matches by appending "-" to the end of the braces (i.e. {one non-terminal, second non-terminal}- ). Atoms are separated by "," or "|". A production rule ends with ";" or ".". Comments are (* comment *)

For more information on EBNF see http://www.cl.cam.ac.uk/~mgk25/iso-ebnf.html
 
install details
Save in $VIMRUNTIME/syntax/
:help new-filetype
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ebnf.vim 1.1 2003-01-28 6.0 Hans Fugal Initial upload
ip used for rating: 54.166.105.24

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo