-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmustard.kex
18 lines (15 loc) · 947 Bytes
/
mustard.kex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'set novalue on' /* force KEXX and its way of SIGNAL ON NOVALUE */
/* Usage: [MACRO] MUSTARD */
/* Purpose: MUSTARD tags all (potential) RFC 2119 keywords */
/* Caveats: There is no STRONGLY in RFC 2119. The keywords */
/* MUST, SHALL, and SHOULD can be combined with a */
/* NOT. The combination NOT RECOMMENDED is also */
/* "allowed", but NOT REQUIRED, NOT OPTIONAL, and */
/* MAY NOT would be dubious. */
/* Requires: Kedit 5.0 or KeditW 1.0 (Frank Ellermann, 2006) */
MUSTARD = '/MUST/ | /SHALL/ | /SHOULD/ | /RECOMMENDED/'
MUSTARD = MUSTARD '| /MAY/ | /OPTIONAL/ | /REQUIRED/ | /NOT /'
'extract /CASE' ; 'case M R'
'tag' ; 'tag' MUSTARD
RX = rc ; 'case' CASE.1 CASE.2
if RX = 0 then 'all tagged' ; exit RX