File tree Expand file tree Collapse file tree 3 files changed +104
-4
lines changed Expand file tree Collapse file tree 3 files changed +104
-4
lines changed Original file line number Diff line number Diff line change 1- * .visx
1+ * .visx
2+ * .vsix
Original file line number Diff line number Diff line change 11{
22 "name" : " tamarin" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.4 " ,
44 "engines" : {
55 "vscode" : " >=0.9.0-pre.1"
66 },
7- "icon" : " https://github.com/linwe2012/ icon.png" ,
7+ "icon" : " icon.png" ,
88 "repository" : " https://github.com/linwe2012/tamarin" ,
99 "publisher" : " leon" ,
1010 "contributes" : {
1717 "language" : " tamarin" ,
1818 "scopeName" : " source.tamarin" ,
1919 "path" : " ./syntaxes/tamarin.tmLanguage"
20- }]
20+ }],
21+ "snippets" : [
22+ {
23+ "language" : " tamarin" ,
24+ "path" : " ./snippets.json"
25+ }
26+ ]
2127 }
2228}
Original file line number Diff line number Diff line change 1+ {
2+ "rule" : {
3+ "prefix" : " rule" ,
4+ "body" : [
5+ " rule $1:" ,
6+ " \t [ $2 ]\n\t --[\n\t\t\n\t ]->\n\t [ $3 ]"
7+ ],
8+ "description" : " Generate rule"
9+ },
10+ "rule let in" : {
11+ "prefix" : " rule" ,
12+ "body" : [
13+ " rule $1:" ,
14+ " \t let" ,
15+ " \t\t $2" ,
16+ " \t in" ,
17+ " \t [ $3 ]" ,
18+ " \t --[" ,
19+ " \t\t " ,
20+ " \t ]->" ,
21+ " \t [ $4 ]"
22+ ],
23+ "description" : " Generate full rule wit let in"
24+ },
25+ "thoery" : {
26+ "prefix" : " theory" ,
27+ "body" : [
28+ " theory $1" ,
29+ " begin" ,
30+ " " ,
31+ " $2" ,
32+ " " ,
33+ " end"
34+ ],
35+ "description" : " Skeleton of a theory"
36+ },
37+ "lemma" : {
38+ "prefix" : " lemma" ,
39+ "body" : [
40+ " lemma $1:" ,
41+ " \t\" " ,
42+ " \t $2" ,
43+ " \t\" "
44+ ],
45+ "description" : " Skeleton of a lemma"
46+ },
47+ "block-comment" :{
48+ "prefix" : " cmt" ,
49+ "body" : [
50+ " /************************************/" ,
51+ " /* $1 */" ,
52+ " /************************************/"
53+ ],
54+ "description" : " Skeleton of a lemma"
55+ },
56+ "fresh" : {
57+ "prefix" : " f" ,
58+ "body" :[
59+ " Fr(~$1)"
60+ ],
61+ "description" : " Create a fresh nounce"
62+ },
63+ "pair" : {
64+ "prefix" : " <" ,
65+ "body" :[
66+ " < $1, $2 >"
67+ ],
68+ "description" : " Syntax sugar for pair(a, b)"
69+ },
70+ "in" : {
71+ "prefix" : " i" ,
72+ "body" :[
73+ " In($1)"
74+ ],
75+ "description" : " Accept a message from outer world, possibly forged by attacker"
76+ },
77+ "out" : {
78+ "prefix" : " o" ,
79+ "body" :[
80+ " Out($1)"
81+ ],
82+ "description" : " Send message out, can be sniffed by attacker"
83+ },
84+ "init" : {
85+ "prefix" : " init" ,
86+ "body" : [
87+ " rule init_$1:" ,
88+ " \t [ $2 ]\n\t --[\n\t\t\n\t ]->\n\t [ $3 ]"
89+ ],
90+ "description" : " Create an init rule"
91+ }
92+
93+ }
You can’t perform that action at this time.
0 commit comments