ebnf.vim


Ⅰ. 插件描述

Extended BNF (ISO/IEC 14977) Syntax

Ⅱ. 基本信息

创建日期:  2003-01-28
使用用户:  18
Github星:  6
插件作者:  Hans Fugal

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/ebnf-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/ebnf-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/ebnf-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ebnf.vim

Ⅳ. 文档说明

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

添加新评论