-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeywordstyle.sty
201 lines (183 loc) · 6.36 KB
/
keywordstyle.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
\newcommand{\tsq}{\textsc{TimeSquare}\xspace}
\newcommand{\ccsl}{\textsc{ccsl}\xspace}
\newcommand{\ecl}{\textsc{ecl}\xspace}
\newcommand{\as}{\textsc{as}\xspace}
\newcommand{\dsa}{\textsc{dsa}\xspace}
\newcommand{\dse}{\textsc{dse}\xspace}
\newcommand{\mse}{\textsc{mse}\xspace}
\newcommand{\mocc}{\textsc{mocc}\xspace}
\newcommand{\moccml}{\textsc{moccml}\xspace}
\newcommand{\ie}{\emph{i.e.,~}}
\newcommand{\eg}{\emph{e.g.},~}
\newcommand{\bcool}{\textsc{B-COoL}\xspace}
\newcommand{\bflow}{\textsc{B-FloW}\xspace}
\newcommand{\todo}[1]{{\color{blue}\fcolorbox{red}{yellow}{\textbf{TODO:}} #1}}
\newcommand{\info}[1]{{\color{red}\fcolorbox{KBlue}{LGrey}{\textbf{FYI:}}}~{\color{blue} #1}}
\definecolor{KRed}{rgb}{0.59,0,0}
\definecolor{KBlue}{rgb}{0,0,0.59}
\definecolor{KBlack}{rgb}{0,0,0}
\definecolor{KGreen}{rgb}{0,0.59,0}
\definecolor{KPurple}{rgb}{0.5,0,0.47}
\definecolor{KOliveGreen}{cmyk}{0.64,0,0.95,0.40}
\definecolor{DBlue}{rgb}{0,0,0.4}
\definecolor{DRed}{rgb}{0.4,0,0}
\definecolor{CGreen}{rgb}{0.3,0.7,0.4}
\definecolor{OliveGreen}{rgb}{0.3,0.7,0.4}
\definecolor{LGrey}{rgb}{0.95,0.95,0.95}
\lstdefinelanguage{ecl}
{
morekeywords=[0]{ require, using, extern, pre, post, inv},
morekeywords=[1]{activitydiagram, tfsm},
morekeywords=[2]{ aspect, abstract },
morekeywords=[3]{ end, Operator, operator },
morekeywords=[4]{ package, context, def, Event, self},
morekeywords=[5]{ },
morekeywords=[6]{ and, or, not },
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\lstset{language=ecl,
basicstyle=\ttfamily,
keywordstyle=[0]\bf\color{KRed},
keywordstyle=[1]\bf\color{KBlue},
keywordstyle=[2]\textit\bf\color{KBlue},
keywordstyle=[3]\bf\color{KBlue},
keywordstyle=[4]\textit\bf\color{KPurple},
keywordstyle=[5]\bf\color{KBlack},
keywordstyle=[6]\bf\color{KPurple},
commentstyle=\color{KOliveGreen},
tabsize=2,
breaklines=true,
aboveskip=1pt,
belowskip=1pt,
numbersep=3pt
% frame=single,
% backgroundcolor=\color{Gris}
}
\lstdefinelanguage{bcool}
{
morekeywords=[0]{ require, using, extern, pre, post, inv},
morekeywords=[1]{activity, tfsm},
morekeywords=[2]{},
morekeywords=[3]{ end, Operator, operator, BCOoLSpec},
morekeywords=[4]{ ImportLib, ImportInterface, as, when, do, CorrespondenceMatching, Event, Local, Global},
morekeywords=[5]{ occurs, startAction, finishAction, entering, leaving, startActivity, finishActivity, ticks, firing},
morekeywords=[6]{ and, or, not },
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\lstset{language=bcool,
basicstyle=\ttfamily,
keywordstyle=[0]\bf\color{KRed},
keywordstyle=[1]\bf\color{KBlue},
keywordstyle=[2]\textit\bf\color{KBlue},
keywordstyle=[3]\bf\color{KBlue},
keywordstyle=[4]\textit\bf\color{KPurple},
keywordstyle=[5]\bf\color{KBlack},
keywordstyle=[6]\bf\color{KPurple},
commentstyle=\color{KOliveGreen},
tabsize=2,
breaklines=true,
aboveskip=5pt,
belowskip=5pt,
numbersep=3pt
% frame=single,
% backgroundcolor=\color{Gris}
}
\lstdefinelanguage{moccml}
{
morekeywords=[0]{ require, using, extern, pre, post, inv},
morekeywords=[1]{dse, Coincides, Causes, SampleBy, root, integer},
morekeywords=[2]{"./ccsllibrary/kernel.ccslLib","./ccsllibrary/CCSL.ccslLib"},
morekeywords=[3]{ end, Operator, operator, BCOoLSpec},
morekeywords=[4]{ ClockConstraintSystem, Block, entryBlock, RelationDefinition, Relation, AutomataConstraintLibrary, RelationDeclarations, as, RelationLibrary, ExpressionLibrary, RelationDefinitions, RelationDeclaration, imports, BCoolLibrary, import, ExpressionDeclarations, ExpressionDefinitions, ExpressionDefinition, ExpressionDeclaration},
morekeywords=[5]{ occurs, startAction, finishAction, entering, leaving, startActivity, finishActivity, ticks},
morekeywords=[6]{ and, or, not },
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\lstset{language=moccml,
basicstyle=\ttfamily,
keywordstyle=[0]\bf\color{KRed},
keywordstyle=[1]\bf\color{KBlue},
keywordstyle=[2]\textit\bf\color{KBlue},
keywordstyle=[3]\bf\color{KBlue},
keywordstyle=[4]\textit\bf\color{KPurple},
keywordstyle=[5]\bf\color{KBlack},
keywordstyle=[6]\bf\color{KPurple},
commentstyle=\color{KOliveGreen},
tabsize=2,
breaklines=true,
% frame=single,
% backgroundcolor=\color{Gris}
}
\lstdefinelanguage{bflow}
{
morekeywords=[0]{ require, using, extern, pre, post, inv},
morekeywords=[1]{activity, tfsm},
morekeywords=[2]{},
morekeywords=[3]{ end, Operator, operator, BCOoLFlow, Flow},
morekeywords=[4]{ ImportBCOoL, ImportInterface, as, when, do, Model, applies, between, CorrespondenceMatching, Event, Local, Global},
morekeywords=[5]{ occurs, startAction, finishAction, entering, leaving, startActivity, finishActivity, ticks, firing},
morekeywords=[6]{ and, or, not },
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\lstset{language=bflow,
basicstyle=\ttfamily,
keywordstyle=[0]\bf\color{KRed},
keywordstyle=[1]\bf\color{KBlue},
keywordstyle=[2]\textit\bf\color{KBlue},
keywordstyle=[3]\bf\color{KBlue},
keywordstyle=[4]\textit\bf\color{KPurple},
keywordstyle=[5]\bf\color{KBlack},
keywordstyle=[6]\bf\color{KPurple},
commentstyle=\color{KOliveGreen},
tabsize=2,
breaklines=true,
aboveskip=5pt,
belowskip=5pt,
numbersep=3pt
% frame=single,
% backgroundcolor=\color{Gris}
}
\lstdefinelanguage{epsilon}
{
morekeywords=[0]{ require, using, extern, pre, post, inv},
morekeywords=[1]{activity, tfsm},
morekeywords=[2]{},
morekeywords=[3]{ end, Operator, operator, BCOoLFlow, Flow},
morekeywords=[4]{ ImportBCOoL, ImportInterface, as, when, do, Model, applies, between, CorrespondenceMatching, Local, Global, rule, match, with, compare, return},
morekeywords=[5]{ occurs, startAction, finishAction, entering, leaving, startActivity, finishActivity, ticks, firing},
morekeywords=[6]{ and, or, not },
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\lstset{language=epsilon,
basicstyle=\ttfamily,
keywordstyle=[0]\bf\color{KRed},
keywordstyle=[1]\bf\color{KBlue},
keywordstyle=[2]\textit\bf\color{KBlue},
keywordstyle=[3]\bf\color{KBlue},
keywordstyle=[4]\textit\bf\color{KPurple},
keywordstyle=[5]\bf\color{KBlack},
keywordstyle=[6]\bf\color{KPurple},
commentstyle=\color{KOliveGreen},
tabsize=2,
breaklines=true,
aboveskip=5pt,
belowskip=5pt,
numbersep=3pt
% frame=single,
% backgroundcolor=\color{Gris}
}