sublimegen

module
v0.0.0-...-1e25281 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2015 License: Apache-2.0

README

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).

Directories

Path Synopsis
src
repository
These are utility functions related to the repository items
These are utility functions related to the repository items

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL