CSPM
A sublime text (and textmate 2) plugin that adds support for CSPM.
Details
Installs
- Total 368
- Win 189
- Mac 86
- Linux 93
Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SublimeCSPM
This bundle adds support for CSPM syntax highlighting to Sublime Text and TextMate 2.
It also includes some simple commands to typecheck the current file, open the current file in FDR3, and check all assertions using command line version of FDR.
Installation
To install the plugin for Sublime Text, use
Package Control and install the package named
CSPM
.
To install this plugin in TextMate 2:
mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
git clone git://github.com/cspm/cspm.tmbundle cspm.tmbundle
Commands
The package adds three commands to Sublime Text.
- Check Assertions (alt-shift-c): checks all assertions using the command line version of FDR.
- Briefly Check Assertions (alt-shift-b): this behaves like the Check Assertions command, but only gives the result of each refinement check, and does not give any counterexamples or log information.
- Open in FDR (alt-shift-r): opens the current file in FDR.
- Typecheck (alt-shift-t): typechecks the current file.
Sometimes the current file will not be suitable for typechecking on its own
(e.g. if a.csp
includes b.csp
, but b.csp
depends on declarations in
a.csp
). In such cases, it is possible to specify the root file that should
be loaded by FDR instead by altering the first line to, e.g. -- root: a.csp
.
In such cases FDR will find type errors in all files that are included by the
root file.
Settings
Sublime Text can be configured using the following options.
fdr_bin_dir
(defaults to null): sets the directory in which the plugin will look forfdr3
andrefines
. By default, the plugin will search in the normal installation locations.typecheck_on_save
(defaults to true): if set, the typechecker will automatically be executed whenever a CSP file is saved.
Settings may also be set on a per-project basis by adding a “cspm” dictionary to the project settings. For example, adding:
"cspm": {
"typecheck_on_save": true
}
will override the typecheck_on_save
setting just for the particular project.
License
See LICENSE.