heptagon/tools/decade.sty

40 lines
901 B
Text
Raw Normal View History

2011-12-12 11:30:18 +01:00
\ProvidesPackage{decade}
\RequirePackage{listings}
\lstdefinelanguage{lustre}{
morekeywords={
node, returns, var, allocate, mutable, let, tel, const, pre, last,fby,
merge, at, if, then, else},
otherkeywords={=, [, ], :, ;, <<, >>, <-},
sensitive=true,
morecomment=[n]{(*}{*)},
morestring=[b]",
morestring=[b]'
}
\lstdefinelanguage{decade}{
morekeywords={
async,fun,future,node,returns,var,let,tel,const,pre,last,do,reset, every,fby,at,
type,merge,automaton,end,switch,case,state,until,if,then,else,
map,with,default,mapfold,fold,new,int,float,init,fun,split,for},
otherkeywords={->},
sensitive=true,
morecomment=[n]{(*}{*)},
morestring=[b]",
morestring=[b]'
}
\lstdefinelanguage{obc}{
morekeywords={
machine,registers,instances,switch,step,float,int,var,case,mutable,for,to},
otherkeywords={},
sensitive=true,
morecomment=[n]{(*}{*)},
morestring=[b]",
morestring=[b]'
}
\lstset{language=decade}