PageRenderTime 70ms CodeModel.GetById 62ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/occam.xml

#
XML | 269 lines | 237 code | 16 blank | 16 comment | 0 complexity | 0f8f96548123639ef2e6fd29ccdc9474 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- Occam mode by Rick Beton. -->
  6<MODE>
  7	<PROPS>
  8		<PROPERTY NAME="commentStart" VALUE="--" />
  9		<PROPERTY NAME="commentEnd" VALUE="" />
 10		<PROPERTY NAME="blockComment" VALUE="" />
 11		<PROPERTY NAME="noWordSep" VALUE="." />
 12	</PROPS>
 13
 14	<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 15		<WHITESPACE> </WHITESPACE>
 16		<WHITESPACE>	</WHITESPACE>
 17
 18		<!-- Normal comments. -->
 19		<EOL_SPAN TYPE="COMMENT1">--</EOL_SPAN>
 20
 21		<!-- Compiler directives. -->
 22		<EOL_SPAN TYPE="COMMENT2">#</EOL_SPAN>
 23
 24		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 25			<BEGIN>'</BEGIN>
 26			<END>'</END>
 27		</SPAN>
 28
 29		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 30			<BEGIN>"</BEGIN>
 31			<END>"</END>
 32		</SPAN>
 33
 34		<SEQ TYPE="NULL">)</SEQ>
 35		<SEQ TYPE="NULL">(</SEQ>
 36		<SEQ TYPE="NULL">]</SEQ>
 37		<SEQ TYPE="NULL">[</SEQ>
 38		<SEQ TYPE="NULL">,</SEQ>
 39		<SEQ TYPE="NULL">;</SEQ>
 40		<SEQ TYPE="NULL">:</SEQ>
 41		<SEQ TYPE="OPERATOR">:=</SEQ>
 42		<SEQ TYPE="OPERATOR">=</SEQ>
 43		<SEQ TYPE="OPERATOR">&gt;&gt;</SEQ>
 44		<SEQ TYPE="OPERATOR">&lt;&lt;</SEQ>
 45		<SEQ TYPE="OPERATOR">&lt;&gt;</SEQ>
 46		<SEQ TYPE="OPERATOR">&gt;&lt;</SEQ>
 47		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 48		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 49		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 50		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 51		<SEQ TYPE="OPERATOR">+</SEQ>
 52		<SEQ TYPE="OPERATOR">-</SEQ>
 53		<SEQ TYPE="OPERATOR">/</SEQ>
 54		<SEQ TYPE="OPERATOR">\</SEQ>
 55		<SEQ TYPE="OPERATOR">*</SEQ>
 56		<SEQ TYPE="OPERATOR">?</SEQ>
 57		<SEQ TYPE="OPERATOR">!</SEQ>
 58		<SEQ TYPE="OPERATOR">/\</SEQ>
 59		<SEQ TYPE="OPERATOR">\/</SEQ>
 60		<SEQ TYPE="OPERATOR">~</SEQ>
 61
 62		<KEYWORDS IGNORE_CASE="FALSE">
 63                        <!-- Structure keywords -->
 64			<KEYWORD1>ALT</KEYWORD1>
 65			<KEYWORD1>ASM</KEYWORD1>
 66			<KEYWORD1>CASE</KEYWORD1>
 67			<KEYWORD1>FUNCTION</KEYWORD1>
 68			<KEYWORD1>IF</KEYWORD1>
 69			<KEYWORD1>INLINE</KEYWORD1>
 70			<KEYWORD1>PAR</KEYWORD1>
 71			<KEYWORD1>PLACED</KEYWORD1>
 72			<KEYWORD1>PRI</KEYWORD1>
 73			<KEYWORD1>PROC</KEYWORD1>
 74			<KEYWORD1>RESULT</KEYWORD1>
 75			<KEYWORD1>SEQ</KEYWORD1>
 76			<KEYWORD1>VALOF</KEYWORD1>
 77			<KEYWORD1>WHILE</KEYWORD1>
 78                        
 79			<!-- main keywords -->
 80                        <KEYWORD2>AT</KEYWORD2>
 81			<KEYWORD2>ELSE</KEYWORD2>
 82			<KEYWORD2>FOR</KEYWORD2>
 83			<KEYWORD2>FROM</KEYWORD2>
 84			<KEYWORD2>IS</KEYWORD2>
 85			<KEYWORD2>PLACE</KEYWORD2>
 86			<KEYWORD2>PORT</KEYWORD2>
 87			<KEYWORD2>PROTOCOL</KEYWORD2>
 88			<KEYWORD2>SKIP</KEYWORD2>
 89			<KEYWORD2>STOP</KEYWORD2>
 90			<KEYWORD2>VAL</KEYWORD2>
 91
 92                        <!-- type and conversion keywords -->
 93			<KEYWORD2>AFTER</KEYWORD2>
 94			<KEYWORD2>AND</KEYWORD2>
 95			<KEYWORD2>ANY</KEYWORD2>
 96			<KEYWORD2>BITAND</KEYWORD2>
 97			<KEYWORD2>BITNOT</KEYWORD2>
 98			<KEYWORD2>BITOR</KEYWORD2>
 99			<KEYWORD2>BOOL</KEYWORD2>
100			<KEYWORD2>BYTE</KEYWORD2>
101			<KEYWORD2>BYTESIN</KEYWORD2>
102			<KEYWORD2>CHAN</KEYWORD2>
103			<KEYWORD2>DATA</KEYWORD2>
104			<KEYWORD2>INT</KEYWORD2>
105			<KEYWORD2>INT32</KEYWORD2>
106			<KEYWORD2>INT16</KEYWORD2>
107			<KEYWORD2>INT64</KEYWORD2>
108			<KEYWORD2>MINUS</KEYWORD2>
109			<KEYWORD2>MOSTNEG</KEYWORD2>
110			<KEYWORD2>MOSTPOS</KEYWORD2>
111			<KEYWORD2>NOT</KEYWORD2>
112			<KEYWORD2>PLUS</KEYWORD2>
113			<KEYWORD2>OF</KEYWORD2>
114			<KEYWORD2>OFFSETOF</KEYWORD2>
115			<KEYWORD2>OR</KEYWORD2>
116			<KEYWORD2>PACKED</KEYWORD2>
117			<KEYWORD2>REAL32</KEYWORD2>
118			<KEYWORD2>REAL64</KEYWORD2>
119			<KEYWORD2>RECORD</KEYWORD2>
120			<KEYWORD2>REM</KEYWORD2>
121			<KEYWORD2>RESHAPES</KEYWORD2>
122			<KEYWORD2>RETYPES</KEYWORD2>
123			<KEYWORD2>ROUND</KEYWORD2>
124			<KEYWORD2>SIZE</KEYWORD2>
125			<KEYWORD2>TIMER</KEYWORD2>
126			<KEYWORD2>TIMES</KEYWORD2>
127			<KEYWORD2>TRUNC</KEYWORD2>
128			<KEYWORD2>TYPE</KEYWORD2>
129
130                        <!-- Occam3 and extensions to occam2.1 -->
131			<KEYWORD2>BUCKET</KEYWORD2>
132			<KEYWORD2>CLAIM</KEYWORD2>
133			<KEYWORD2>ENROLL</KEYWORD2>
134			<KEYWORD2>EVENT</KEYWORD2>
135			<KEYWORD2>FALL</KEYWORD2>
136			<KEYWORD2>FLUSH</KEYWORD2>
137			<KEYWORD2>GRANT</KEYWORD2>
138			<KEYWORD2>INITIAL</KEYWORD2>
139			<KEYWORD2>RESOURCE</KEYWORD2>
140			<KEYWORD2>SEMAPHORE</KEYWORD2>
141			<KEYWORD2>SHARED</KEYWORD2>
142			<KEYWORD2>SYNC</KEYWORD2>
143                        
144                        <!-- arithmetic & trigonometric functions -->
145			<KEYWORD3>LONGADD</KEYWORD3>
146			<KEYWORD3>LONGSUB</KEYWORD3>
147			<KEYWORD3>ASHIFTRIGHT</KEYWORD3>
148			<KEYWORD3>ASHIFTLEFT</KEYWORD3>
149			<KEYWORD3>ROTATERIGHT</KEYWORD3>
150			<KEYWORD3>ROTATELEFT</KEYWORD3>
151			<KEYWORD3>LONGSUM</KEYWORD3>
152			<KEYWORD3>LONGDIFF</KEYWORD3>
153			<KEYWORD3>LONGPROD</KEYWORD3>
154			<KEYWORD3>LONGDIV</KEYWORD3>
155			<KEYWORD3>SHIFTLEFT</KEYWORD3>
156			<KEYWORD3>SHIFTRIGHT</KEYWORD3>
157			<KEYWORD3>NORMALISE</KEYWORD3>
158			<KEYWORD3>ABS</KEYWORD3>
159			<KEYWORD3>DABS</KEYWORD3>
160			<KEYWORD3>SCALEB</KEYWORD3>
161			<KEYWORD3>DSCALEB</KEYWORD3>
162			<KEYWORD3>COPYSIGN</KEYWORD3>
163			<KEYWORD3>DCOPYSIGN</KEYWORD3>
164			<KEYWORD3>SQRT</KEYWORD3>
165			<KEYWORD3>DSQRT</KEYWORD3>
166			<KEYWORD3>MINUSX</KEYWORD3>
167			<KEYWORD3>DMINUSX</KEYWORD3>
168			<KEYWORD3>NEXTAFTER</KEYWORD3>
169			<KEYWORD3>DNEXTAFTER</KEYWORD3>
170			<KEYWORD3>MULBY2</KEYWORD3>
171			<KEYWORD3>DMULBY2</KEYWORD3>
172			<KEYWORD3>DIVBY2</KEYWORD3>
173			<KEYWORD3>DDIVBY2</KEYWORD3>
174			<KEYWORD3>LOGB</KEYWORD3>
175			<KEYWORD3>DLOGB</KEYWORD3>
176			<KEYWORD3>ISNAN</KEYWORD3>
177			<KEYWORD3>DISNAN</KEYWORD3>
178			<KEYWORD3>NOTFINITE</KEYWORD3>
179			<KEYWORD3>DNOTFINITE</KEYWORD3>
180			<KEYWORD3>ORDERED</KEYWORD3>
181			<KEYWORD3>DORDERED</KEYWORD3>
182			<KEYWORD3>FLOATING.UNPACK</KEYWORD3>
183			<KEYWORD3>DFLOATING.UNPACK</KEYWORD3>
184			<KEYWORD3>ARGUMENT.REDUCE</KEYWORD3>
185			<KEYWORD3>DARGUMENT.REDUCE</KEYWORD3>
186			<KEYWORD3>FPINT</KEYWORD3>
187			<KEYWORD3>DFPINT</KEYWORD3>
188			<KEYWORD3>REAL32OP</KEYWORD3>
189			<KEYWORD3>REAL64OP</KEYWORD3>
190			<KEYWORD3>IEEE32OP</KEYWORD3>
191			<KEYWORD3>IEEE64OP</KEYWORD3>
192			<KEYWORD3>REAL32REM</KEYWORD3>
193			<KEYWORD3>REAL64REM</KEYWORD3>
194			<KEYWORD3>IEEE32REM</KEYWORD3>
195			<KEYWORD3>IEEE64REM</KEYWORD3>
196			<KEYWORD3>REAL32EQ</KEYWORD3>
197			<KEYWORD3>REAL64EQ</KEYWORD3>
198			<KEYWORD3>REAL32GT</KEYWORD3>
199			<KEYWORD3>REAL64GT</KEYWORD3>
200			<KEYWORD3>IEEECOMPARE</KEYWORD3>
201			<KEYWORD3>DIEEECOMPARE</KEYWORD3>
202			<KEYWORD3>ALOG</KEYWORD3>
203			<KEYWORD3>DALOG</KEYWORD3>
204			<KEYWORD3>ALOG10</KEYWORD3>
205			<KEYWORD3>DALOG10</KEYWORD3>
206			<KEYWORD3>EXP</KEYWORD3>
207			<KEYWORD3>DEXP</KEYWORD3>
208			<KEYWORD3>TAN</KEYWORD3>
209			<KEYWORD3>DTAN</KEYWORD3>
210			<KEYWORD3>SIN</KEYWORD3>
211			<KEYWORD3>DSIN</KEYWORD3>
212			<KEYWORD3>ASIN</KEYWORD3>
213			<KEYWORD3>DASIN</KEYWORD3>
214			<KEYWORD3>COS</KEYWORD3>
215			<KEYWORD3>DCOS</KEYWORD3>
216			<KEYWORD3>SINH</KEYWORD3>
217			<KEYWORD3>DSINH</KEYWORD3>
218			<KEYWORD3>COSH</KEYWORD3>
219			<KEYWORD3>DCOSH</KEYWORD3>
220			<KEYWORD3>TANH</KEYWORD3>
221			<KEYWORD3>DTANH</KEYWORD3>
222			<KEYWORD3>ATAN</KEYWORD3>
223			<KEYWORD3>DATAN</KEYWORD3>
224			<KEYWORD3>ATAN2</KEYWORD3>
225			<KEYWORD3>DATAN2</KEYWORD3>
226			<KEYWORD3>RAN</KEYWORD3>
227			<KEYWORD3>DRAN</KEYWORD3>
228			<KEYWORD3>POWER</KEYWORD3>
229			<KEYWORD3>DPOWER</KEYWORD3>
230
231                        <!-- basic data conversion functions -->
232			<KEYWORD3>INTTOSTRING</KEYWORD3>
233			<KEYWORD3>INT16TOSTRING</KEYWORD3>
234			<KEYWORD3>INT32TOSTRING</KEYWORD3>
235			<KEYWORD3>INT64TOSTRING</KEYWORD3>
236			<KEYWORD3>STRINGTOINT</KEYWORD3>
237			<KEYWORD3>STRINGTOINT16</KEYWORD3>
238			<KEYWORD3>STRINGTOINT32</KEYWORD3>
239			<KEYWORD3>STRINGTOINT64</KEYWORD3>
240			<KEYWORD3>HEXTOSTRING</KEYWORD3>
241			<KEYWORD3>HEX16TOSTRING</KEYWORD3>
242			<KEYWORD3>HEX32TOSTRING</KEYWORD3>
243			<KEYWORD3>HEX64TOSTRING</KEYWORD3>
244			<KEYWORD3>STRINGTOHEX</KEYWORD3>
245			<KEYWORD3>STRINGTOHEX16</KEYWORD3>
246			<KEYWORD3>STRINGTOHEX32</KEYWORD3>
247			<KEYWORD3>STRINGTOHEX64</KEYWORD3>
248			<KEYWORD3>STRINGTOREAL32</KEYWORD3>
249			<KEYWORD3>STRINGTOREAL64</KEYWORD3>
250			<KEYWORD3>REAL32TOSTRING</KEYWORD3>
251			<KEYWORD3>REAL64TOSTRING</KEYWORD3>
252			<KEYWORD3>STRINGTOBOOL</KEYWORD3>
253			<KEYWORD3>BOOLTOSTRING</KEYWORD3>
254			<KEYWORD3>RESCHEDULE</KEYWORD3>
255			<KEYWORD3>ASSERT</KEYWORD3>
256
257                        <!-- preprocessor directives
258                        #INCLUDE
259                        #USE
260                        #OPTION
261                        #PRAGMA
262                        #COMMENT
263                        -->
264
265			<LITERAL2>FALSE</LITERAL2>
266			<LITERAL2>TRUE</LITERAL2>
267		</KEYWORDS>
268	</RULES>
269</MODE>