K framework for Brackets
K framework is an open source project and you can view the source code here: https://github.com/kframework
Features
- K Syntax highlighting support for Brackets, made with CodeMirror
- K code snippets [see below: Additional Support]
Get Started Writing K
Syntax Highlighter Example
Install
Search K Framework Syntax Highlighter
in Brackets Extension Manager, and install it.
Failed to download it in Brackets? Try the alternative instructions:
- Download .zip package of the latest version
- Drag the file into the bottom-left position of Extension Manager
- Restart Brackets
- For K snippets read below
Additional Snippets Support
The extension has not yet implemented its own template system, but we advise you to use the extension brackets-snippets
- Search
Brackets Snippets (by edc)
in Brackets Extension Manager, and install it or Download - Look for
K-snippets.yml
file and download it or just click here Download - Done
K Trigger Snippet
- configuration
- imports
- list
- module
- start
- syntax
- rule
- tag
- env tag
- k tag
- stack tag
- stream
- assignment ( |-> => )
- remove ( => .) )
K syntax highlighting
Strings: ' ' ,
" "
Comments: // ,
/* */
Keywords: module,
endmodule,
syntax,
rule,
Id,
Int,
Bool,
notBool,
String,
configuration,
imports,
Token,
Lexer,
Float,
requires,
Kresult,
context
Tags: strict,
avoid,
prefer,
bracket,
left,
right,
macro,
token,
notInRules,
binder,
later,
structural,
autoReject,
seqstrict,
non-assoc,
stream
Operators: ::=,
[+ - * % / > <],
!(\S),
[=> <= <-| |->]
Types: [: + % * - > < =](\S)
Ex: +Int, =/=Int...
Brackets: [],
{}
Kextra: ... ,
. ,
_