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
|
% English keywords
% Moreira, J. (moreira.jander@gmail.com)
\AlgLanguageSet{english}{%
description = Description,
input = Input,
output = Output,
require = Require,
ensure = Ensure,
end = end,
if = if,
then = then,
else = else,
switch = switch,
of = of,
case = case,
otherwise = otherwise,
do = do,
while = while,
repeat = repeat,
until = until,
loop = loop,
foreach = {for~each},
forall = {for~all},
for = for,
to = to,
downto = {down~to},
step = step,
continue = continue,
break = break,
function = function,
procedure = procedure,
return = return,
true = True,
false = False,
nil = Nil,
read = read,
write = write,
set = set,
}
% Compound keywords
\AlgLanguageSet{english}{
endwhile = \Keyword{end}~\Keyword{while},
endfor = \Keyword{end}~\Keyword{for},
endloop = \Keyword{end}~\Keyword{loop},
endif = \Keyword{end}~\Keyword{if},
endswitch = \Keyword{end}~\Keyword{switch},
endcase = \Keyword{end}~\Keyword{case},
endotherwise = \Keyword{end}~\Keyword{otherwise},
endprocedure = \Keyword{end}~\Keyword{procedure},
endfunction = \Keyword{end}~\Keyword{function},
}
|