Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alhadis/language-grammars

Syntax highlighting for ABNF/BNF/EBNF, Yacc, and other language-related languages.
https://github.com/alhadis/language-grammars

abnf backus-naur-form bison bnf ebnf flex grammars lark lark-parser syntax-highlighting yacc

Last synced: 5 days ago
JSON representation

Syntax highlighting for ABNF/BNF/EBNF, Yacc, and other language-related languages.

Awesome Lists containing this project

README

        

Syntax highlighting for meta-languages
======================================

Syntax highlighting for ABNF/BNF/EBNF, Yacc, and other language-related
languages (“metalanguages”). Ignore the other packages on Atom.io, this
is the one you want to install.

Supported formats
-----------------
* [Augmented Backus-Naur Form][ABNF]
* [Backus-Naur Form][BNF]
* [Extended Backus-Naur Form][EBNF] ([ISO/IEC 14977][] + extensions)
* [GOLD Parser][GOLD]
* [Grammarkdown][]
* [Labelled Backus-Naur Form][LBNF]
* [Lark][]
* [Lex][] / [Flex][]
* [PEG.js] / [Peggy][]
* [Yacc][] / [Bison][]

Includes highlighting for embedded C/C++ source (Yacc/Lex files only).

Previews
--------

> ABNF:
![Highlighted `.abnf` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/abnf.png)

> BNF:
![Highlighted `.bnf` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/bnf.png)

> EBNF:
![Highlighted `.ebnf` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/ebnf.png)

> Lark:
![Highlighted `.lark` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/lark.png)

> Lex:
![Highlighted `.lex` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/lex.png)

> Yacc:
![Highlighted `.y` file](https://raw.githubusercontent.com/Alhadis/language-grammars/static/previews/yacc.png)

[ABNF]: https://en.wikipedia.org/wiki/Augmented_Backus–Naur_form
[BNF]: https://en.wikipedia.org/wiki/Backus–Naur_form
[EBNF]: https://en.wikipedia.org/wiki/Extended_Backus–Naur_form
[ISO/IEC 14977]: http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf
[GOLD]: http://goldparser.org/doc/grammars/index.htm
[Grammarkdown]: https://rbuckton.github.io/grammarkdown/
[LBNF]: https://github.com/BNFC/bnfc/blob/master/docs/lbnf.rst
[Lark]: https://lark-parser.readthedocs.io/en/latest/grammar.html
[Lex]: https://en.wikipedia.org/wiki/Lex_(software)
[Flex]: https://en.wikipedia.org/wiki/Flex_(lexical_analyser_generator)
[Yacc]: https://en.wikipedia.org/wiki/Yacc
[Bison]: https://www.gnu.org/software/bison/manual/bison.html
[PEG.js]: https://pegjs.org/
[Peggy]: https://peggyjs.org/