Skip to content

AdeebNqo/sublimegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

sublimegen

Build Status Coverage Status

This is a tool that will convert a BNF (conforming to the GOCC syntax) for a language to a SublimeText Syntax Highlighting Plugin. It uses gocc, a parser generator written in Go.

forthebadge forthebadge

How to use

If we assume that we generated a binary file called sublimegen. Running it for the language Calc whose configuration files can be found in languagefiles/calc_languagefiles is ass follows:

./sublimegen -fileTypes "calc" -name "Calc" -scopeName "source.calc" -source languagefiles/calc_languagefiles/calc.bnf -scopes languagefiles/calc_languagefiles/scopes.json -orderregex 1

Dependencies

Additional

The python scripts (scripts/generate-*.py) are used for testing. The tool does not depend on them. The scripts depend on xeger (it can also be found in rstr).

About

Syntax highlight generator for sublime text.

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE
MIT
gouuid_LICENSE
MIT
greenery_LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages