* mel-b-ccl.el: New file.
[elisp/flim.git] / ew-parse.el
index deb4657..e67dca0 100644 (file)
 (require 'lr-driver)
 
 ; *** Token Definitions ***
-(defconst ew:*eoi*-tok 0)
-(defconst ew:anchor-tok        1)
-(defconst ew:tag-mailbox-tok   2)
-(defconst ew:tag-mailbox*-tok  3)
-(defconst ew:tag-mailbox+-tok  4)
-(defconst ew:tag-address*-tok  5)
-(defconst ew:tag-address+-tok  6)
-(defconst ew:tag-phrase*-tok   7)
-(defconst ew:tag-phrase-msg-id*-tok    8)
-(defconst ew:lt-tok    9)
-(defconst ew:gt-tok    10)
-(defconst ew:at-tok    11)
-(defconst ew:comma-tok 12)
-(defconst ew:semicolon-tok     13)
-(defconst ew:colon-tok 14)
-(defconst ew:dot-tok   15)
-(defconst ew:atom-tok  16)
-(defconst ew:slash-tok 17)
-(defconst ew:question-tok      18)
-(defconst ew:equal-tok 19)
-(defconst ew:token-tok 20)
-(defconst ew:us-texts-tok      21)
-(defconst ew:us-wsp-tok        22)
-(defconst ew:us-fold-tok       23)
-(defconst ew:wsp-tok   24)
-(defconst ew:fold-tok  25)
-(defconst ew:qs-begin-tok      26)
-(defconst ew:qs-end-tok        27)
-(defconst ew:qs-texts-tok      28)
-(defconst ew:qs-wsp-tok        29)
-(defconst ew:qs-fold-tok       30)
-(defconst ew:qs-qfold-tok      31)
-(defconst ew:qs-qpair-tok      32)
-(defconst ew:dl-begin-tok      33)
-(defconst ew:dl-end-tok        34)
-(defconst ew:dl-texts-tok      35)
-(defconst ew:dl-wsp-tok        36)
-(defconst ew:dl-fold-tok       37)
-(defconst ew:dl-qfold-tok      38)
-(defconst ew:dl-qpair-tok      39)
-(defconst ew:cm-begin-tok      40)
-(defconst ew:cm-end-tok        41)
-(defconst ew:cm-nested-begin-tok       42)
-(defconst ew:cm-nested-end-tok 43)
-(defconst ew:cm-texts-tok      44)
-(defconst ew:cm-wsp-tok        45)
-(defconst ew:cm-fold-tok       46)
-(defconst ew:cm-qfold-tok      47)
-(defconst ew:cm-qpair-tok      48)
-(defconst ew:err-tok   49)
+(defconst ew:*eoi*     0)
+(defconst ew:*anchor*  1)
+(defconst ew:*err*     2)
+(defconst ew:tag-mailbox       3)
+(defconst ew:tag-mailbox*      4)
+(defconst ew:tag-mailbox+      5)
+(defconst ew:tag-address*      6)
+(defconst ew:tag-address+      7)
+(defconst ew:tag-phrase*       8)
+(defconst ew:tag-phrase-msg-id*        9)
+(defconst ew:lt        10)
+(defconst ew:gt        11)
+(defconst ew:at        12)
+(defconst ew:comma     13)
+(defconst ew:semicolon 14)
+(defconst ew:colon     15)
+(defconst ew:dot       16)
+(defconst ew:atom      17)
+(defconst ew:slash     18)
+(defconst ew:question  19)
+(defconst ew:equal     20)
+(defconst ew:token     21)
+(defconst ew:qs-begin  22)
+(defconst ew:qs-end    23)
+(defconst ew:qs-texts  24)
+(defconst ew:qs-wsp    25)
+(defconst ew:qs-fold   26)
+(defconst ew:qs-qfold  27)
+(defconst ew:qs-qpair  28)
+(defconst ew:dl-begin  29)
+(defconst ew:dl-end    30)
+(defconst ew:dl-texts  31)
+(defconst ew:dl-wsp    32)
+(defconst ew:dl-fold   33)
+(defconst ew:dl-qfold  34)
+(defconst ew:dl-qpair  35)
+(defconst ew:cm-begin  36)
+(defconst ew:cm-end    37)
+(defconst ew:cm-nested-begin   38)
+(defconst ew:cm-nested-end     39)
+(defconst ew:cm-texts  40)
+(defconst ew:cm-wsp    41)
+(defconst ew:cm-fold   42)
+(defconst ew:cm-qfold  43)
+(defconst ew:cm-qpair  44)
+(defconst ew:wsp       45)
+(defconst ew:fold      46)
+(defconst ew:us-texts  47)
+(defconst ew:us-wsp    48)
+(defconst ew:us-fold   49)
+(defconst ew:n-body    50)
 
 (defconst ew:token-defs
   (list 
    (cons 0 "*eoi*")
-   (cons 1 "anchor")
-   (cons 2 "tag-mailbox")
-   (cons 3 "tag-mailbox*")
-   (cons 4 "tag-mailbox+")
-   (cons 5 "tag-address*")
-   (cons 6 "tag-address+")
-   (cons 7 "tag-phrase*")
-   (cons 8 "tag-phrase-msg-id*")
-   (cons 9 "lt")
-   (cons 10 "gt")
-   (cons 11 "at")
-   (cons 12 "comma")
-   (cons 13 "semicolon")
-   (cons 14 "colon")
-   (cons 15 "dot")
-   (cons 16 "atom")
-   (cons 17 "slash")
-   (cons 18 "question")
-   (cons 19 "equal")
-   (cons 20 "token")
-   (cons 21 "us-texts")
-   (cons 22 "us-wsp")
-   (cons 23 "us-fold")
-   (cons 24 "wsp")
-   (cons 25 "fold")
-   (cons 26 "qs-begin")
-   (cons 27 "qs-end")
-   (cons 28 "qs-texts")
-   (cons 29 "qs-wsp")
-   (cons 30 "qs-fold")
-   (cons 31 "qs-qfold")
-   (cons 32 "qs-qpair")
-   (cons 33 "dl-begin")
-   (cons 34 "dl-end")
-   (cons 35 "dl-texts")
-   (cons 36 "dl-wsp")
-   (cons 37 "dl-fold")
-   (cons 38 "dl-qfold")
-   (cons 39 "dl-qpair")
-   (cons 40 "cm-begin")
-   (cons 41 "cm-end")
-   (cons 42 "cm-nested-begin")
-   (cons 43 "cm-nested-end")
-   (cons 44 "cm-texts")
-   (cons 45 "cm-wsp")
-   (cons 46 "cm-fold")
-   (cons 47 "cm-qfold")
-   (cons 48 "cm-qpair")
-   (cons 49 "err")
+   (cons 1 "*anchor*")
+   (cons 2 "*err*")
+   (cons 3 "tag-mailbox")
+   (cons 4 "tag-mailbox*")
+   (cons 5 "tag-mailbox+")
+   (cons 6 "tag-address*")
+   (cons 7 "tag-address+")
+   (cons 8 "tag-phrase*")
+   (cons 9 "tag-phrase-msg-id*")
+   (cons 10 "lt")
+   (cons 11 "gt")
+   (cons 12 "at")
+   (cons 13 "comma")
+   (cons 14 "semicolon")
+   (cons 15 "colon")
+   (cons 16 "dot")
+   (cons 17 "atom")
+   (cons 18 "slash")
+   (cons 19 "question")
+   (cons 20 "equal")
+   (cons 21 "token")
+   (cons 22 "qs-begin")
+   (cons 23 "qs-end")
+   (cons 24 "qs-texts")
+   (cons 25 "qs-wsp")
+   (cons 26 "qs-fold")
+   (cons 27 "qs-qfold")
+   (cons 28 "qs-qpair")
+   (cons 29 "dl-begin")
+   (cons 30 "dl-end")
+   (cons 31 "dl-texts")
+   (cons 32 "dl-wsp")
+   (cons 33 "dl-fold")
+   (cons 34 "dl-qfold")
+   (cons 35 "dl-qpair")
+   (cons 36 "cm-begin")
+   (cons 37 "cm-end")
+   (cons 38 "cm-nested-begin")
+   (cons 39 "cm-nested-end")
+   (cons 40 "cm-texts")
+   (cons 41 "cm-wsp")
+   (cons 42 "cm-fold")
+   (cons 43 "cm-qfold")
+   (cons 44 "cm-qpair")
+   (cons 45 "wsp")
+   (cons 46 "fold")
+   (cons 47 "us-texts")
+   (cons 48 "us-wsp")
+   (cons 49 "us-fold")
+   (cons 50 "n-body")
   ))
 
 ; *** Action Table ***
 (defconst ew:action-table
   [
-     ((default . *error*) (2 . 7) (3 . 6) (4 . 5) (5 . 4) (6 . 3) (7 . 2) (8 . 1))
+     ((default . *error*) (3 . 7) (4 . 6) (5 . 5) (6 . 4) (7 . 3) (8 . 2) (9 . 1))
      ((default . -61))
      ((default . -61))
      ((default . -61))
      ((default . -61))
      ((default . -61))
      ((default . *error*) (0 . 16))
-     ((default . -51) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . -53) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . *error*) (9 . 34) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . -9) (9 . 34) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . *error*) (9 . 34) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . -30) (9 . 34) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
-     ((default . *error*) (9 . 34) (16 . 21) (24 . 20) (25 . 19) (26 . 18) (40 . 17))
+     ((default . -51) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . -53) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (10 . 34) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . -9) (10 . 34) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (10 . 34) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . -30) (10 . 34) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (10 . 34) (17 . 21) (22 . 20) (36 . 19) (45 . 18) (46 . 17))
      ((default . -1) (0 . accept))
-     ((default . -90))
-     ((default . -76))
      ((default . -63))
      ((default . -62))
+     ((default . -90))
+     ((default . -76))
      ((default . -61))
      ((default . -64))
      ((default . -61))
      ((default . -48))
      ((default . -49))
-     ((default . -8) (9 . 34))
+     ((default . -8) (10 . 34))
      ((default . -57))
      ((default . -37))
-     ((default . -36) (16 . 21) (26 . 18))
+     ((default . -36) (17 . 21) (22 . 20))
      ((default . -52))
-     ((default . -54) (12 . 60))
+     ((default . -54) (13 . 60))
      ((default . -7))
      ((default . -55))
      ((default . -61))
-     ((default . -43) (11 . 63))
-     ((default . -37) (15 . -25) (11 . -25))
+     ((default . -43) (12 . 63))
+     ((default . -37) (16 . -25) (12 . -25))
      ((default . -29))
-     ((default . *error*) (9 . 34) (14 . 68))
+     ((default . *error*) (10 . 34) (15 . 68))
      ((default . -13))
-     ((default . *error*) (11 . 63) (15 . 71))
+     ((default . *error*) (12 . 63) (16 . 71))
      ((default . -14))
      ((default . -27))
      ((default . -11))
-     ((default . -6) (12 . 60))
-     ((default . -10) (12 . 60))
+     ((default . -6) (13 . 60))
+     ((default . -10) (13 . 60))
      ((default . -5))
-     ((default . *error*) (9 . 34))
-     ((default . -4) (12 . 60))
+     ((default . *error*) (10 . 34))
+     ((default . -4) (13 . 60))
      ((default . -32))
-     ((default . -31) (12 . 60))
+     ((default . -31) (13 . 60))
      ((default . -3))
      ((default . -2))
-     ((default . *error*) (41 . 83) (42 . 82) (43 . 81) (44 . 80) (45 . 79) (46 . 78) (47 . 77) (48 . 76))
-     ((default . *error*) (27 . 89) (28 . 88) (29 . 87) (30 . 86) (31 . 85) (32 . 84))
-     ((default . -74) (24 . 20) (25 . 19) (40 . 17))
-     ((default . -72) (24 . 20) (25 . 19) (40 . 17))
-     ((default . *error*) (16 . 21) (26 . 18))
-     ((default . -51) (16 . 21) (26 . 18))
+     ((default . *error*) (37 . 83) (38 . 82) (39 . 81) (40 . 80) (41 . 79) (42 . 78) (43 . 77) (44 . 76))
+     ((default . *error*) (23 . 89) (24 . 88) (25 . 87) (26 . 86) (27 . 85) (28 . 84))
+     ((default . -74) (36 . 19) (45 . 18) (46 . 17))
+     ((default . -72) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (17 . 21) (22 . 20))
+     ((default . -51) (17 . 21) (22 . 20))
      ((default . -38))
      ((default . -61))
-     ((default . *error*) (16 . 21) (26 . 18))
-     ((default . -65) (24 . 20) (25 . 19) (40 . 17))
+     ((default . *error*) (17 . 21) (22 . 20))
+     ((default . -65) (36 . 19) (45 . 18) (46 . 17))
      ((default . -61))
-     ((default . *error*) (16 . 21) (33 . 96))
-     ((default . *error*) (16 . 21) (26 . 18))
-     ((default . *error*) (12 . 60) (14 . 68))
+     ((default . *error*) (17 . 21) (29 . 96))
+     ((default . *error*) (17 . 21) (22 . 20))
+     ((default . *error*) (13 . 60) (15 . 68))
      ((default . -44))
      ((default . -61))
-     ((default . -30) (9 . 34) (16 . 21) (26 . 18))
+     ((default . -30) (10 . 34) (17 . 21) (22 . 20))
      ((default . -28))
      ((default . -61))
-     ((default . *error*) (16 . 21) (26 . 18))
-     ((default . *error*) (16 . 21) (33 . 96))
-     ((default . *error*) (9 . 34) (16 . 21) (26 . 18))
-     ((default . *error*) (9 . 34) (16 . 21) (26 . 18))
+     ((default . *error*) (17 . 21) (22 . 20))
+     ((default . *error*) (17 . 21) (29 . 96))
+     ((default . *error*) (10 . 34) (17 . 21) (22 . 20))
+     ((default . *error*) (10 . 34) (17 . 21) (22 . 20))
      ((default . -97))
      ((default . -96))
      ((default . -95))
      ((default . -77))
      ((default . -75))
      ((default . -25))
-     ((default . *error*) (10 . 113))
+     ((default . *error*) (11 . 113))
      ((default . -58))
-     ((default . -68) (24 . 20) (25 . 19) (40 . 17))
+     ((default . -68) (36 . 19) (45 . 18) (46 . 17))
      ((default . -56))
-     ((default . -67) (24 . 20) (25 . 19) (40 . 17))
+     ((default . -67) (36 . 19) (45 . 18) (46 . 17))
      ((default . -83))
      ((default . -61))
      ((default . -21))
      ((default . -46))
      ((default . -19))
      ((default . -45))
-     ((default . -40) (15 . 71))
-     ((default . *error*) (10 . 113))
+     ((default . -40) (16 . 71))
+     ((default . *error*) (11 . 113))
      ((default . -39))
-     ((default . *error*) (11 . 63))
-     ((default . -70) (24 . 20) (25 . 19) (40 . 17))
-     ((default . *error*) (13 . 120))
-     ((default . -71) (24 . 20) (25 . 19) (40 . 17))
+     ((default . *error*) (12 . 63))
+     ((default . -70) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (14 . 120))
+     ((default . -71) (36 . 19) (45 . 18) (46 . 17))
      ((default . -26))
-     ((default . -15) (15 . 71))
+     ((default . -15) (16 . 71))
      ((default . -12))
      ((default . -33))
      ((default . -61))
      ((default . -35))
-     ((default . *error*) (34 . 128) (35 . 127) (36 . 126) (37 . 125) (38 . 124) (39 . 123))
-     ((default . -73) (24 . 20) (25 . 19) (40 . 17))
-     ((default . *error*) (16 . 21) (33 . 96))
+     ((default . *error*) (30 . 128) (31 . 127) (32 . 126) (33 . 125) (34 . 124) (35 . 123))
+     ((default . -73) (36 . 19) (45 . 18) (46 . 17))
+     ((default . *error*) (17 . 21) (29 . 96))
      ((default . -42))
-     ((default . *error*) (16 . 21) (33 . 96))
+     ((default . *error*) (17 . 21) (29 . 96))
      ((default . -61))
      ((default . -22))
-     ((default . -66) (24 . 20) (25 . 19) (40 . 17))
+     ((default . -66) (36 . 19) (45 . 18) (46 . 17))
      ((default . -88))
      ((default . -87))
      ((default . -86))
      ((default . -84))
      ((default . -82))
      ((default . -20))
-     ((default . -41) (15 . 71))
-     ((default . -69) (24 . 20) (25 . 19) (40 . 17))
+     ((default . -41) (16 . 71))
+     ((default . -69) (36 . 19) (45 . 18) (46 . 17))
     ])
 
 ; *** Goto Table ***
      ((48 . 22)(44 . 23)(43 . 24)(41 . 25)(34 . 35)(26 . 36)(22 . 37)(19 . 29)(18 . 47)(15 . 50)(14 . 51)(13 . 49)(12 . 40)(5 . 42))
      ((48 . 22)(44 . 23)(43 . 24)(41 . 25)(34 . 35)(26 . 36)(22 . 37)(19 . 29)(18 . 47)(13 . 52)(12 . 40)(5 . 42))
      ()
-     ((49 . 53))
-     ((45 . 54))
      ()
      ()
+     ((49 . 53))
+     ((45 . 54))
      ((33 . 55))
      ()
      ((33 . 56))
 (defconst ew:reduction-table
   (vector
     '()
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (accept $1)))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 1 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 2 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 2 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 3 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 3 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 4 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 4 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 5 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 6 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($4 (aref stack (- sp 1)))
              ($3 (aref stack (- sp 3)))
              ($2 (aref stack (- sp 5)))
              ($1 (aref stack (- sp 7))))
           (lr-push stack (- sp 8) 7 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 7 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 8 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 8 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 9 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($4 (aref stack (- sp 1)))
              ($3 (aref stack (- sp 3)))
              ($2 (aref stack (- sp 5)))
              ($1 (aref stack (- sp 7))))
           (lr-push stack (- sp 8) 10 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 11 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($5 (aref stack (- sp 1)))
              ($4 (aref stack (- sp 3)))
              ($3 (aref stack (- sp 5)))
              ($2 (aref stack (- sp 7)))
              ($1 (aref stack (- sp 9))))
           (lr-push stack (- sp 10) 11 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 12 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 12 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 13 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 13 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 13 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 14 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 14 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 15 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 15 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 16 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 17 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
-          (lr-push stack (- sp 2) 18 goto-table (ew-mark-phrase (car $1) (cdr $1)))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 2) 18 goto-table (ew-mark-phrase $1 $look))))
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 19 goto-table $1)))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 19 goto-table (cons (car $1) (cdr $2)))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 19 goto-table $1)))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 20 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 21 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($4 (aref stack (- sp 1)))
              ($3 (aref stack (- sp 3)))
              ($2 (aref stack (- sp 5)))
              ($1 (aref stack (- sp 7))))
           (lr-push stack (- sp 8) 21 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($4 (aref stack (- sp 1)))
              ($3 (aref stack (- sp 3)))
              ($2 (aref stack (- sp 5)))
              ($1 (aref stack (- sp 7))))
           (lr-push stack (- sp 8) 22 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 23 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 23 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 24 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 24 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 25 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 26 goto-table $1)))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 26 goto-table $1)))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 27 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 28 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 28 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 29 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 29 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 30 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 30 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 31 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 31 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($1 (aref stack (- sp 1))))
           (lr-push stack (- sp 2) 32 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 32 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
-          (lr-push stack (- sp 0) 33 goto-table nil)))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 0) 33 goto-table ())))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 33 goto-table (cons (if $1 (car $1) $2) $2))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 33 goto-table ())))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 33 goto-table (cons (if $1 (car $1) $2) $2))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 33 goto-table ())))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 33 goto-table (cons (if $1 (car $1) (car $2)) (cdr $2)))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 33 goto-table ())))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 34 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 35 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 36 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 37 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 38 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 39 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 40 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 41 goto-table (cons (car $1) (if $2 (cdr $2) (cdr $1))))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 41 goto-table $1)))
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 42 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
-          (lr-push stack (- sp 4) 43 goto-table (cons $1 (if $2 (cdr $2) $1)))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 4) 43 goto-table $1)))
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
-          (lr-push stack (- sp 6) 44 goto-table (cons $1 $3))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 6) 44 goto-table $1)))
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 45 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
           (lr-push stack (- sp 6) 46 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 47 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($3 (aref stack (- sp 1)))
              ($2 (aref stack (- sp 3)))
              ($1 (aref stack (- sp 5))))
-          (lr-push stack (- sp 6) 48 goto-table (cons $1 $3))))
-    (lambda (stack sp goto-table $lookahead)
+          (lr-push stack (- sp 6) 48 goto-table ())))
+    (lambda (stack sp goto-table $look)
       (let* ()
           (lr-push stack (- sp 0) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
-    (lambda (stack sp goto-table $lookahead)
+    (lambda (stack sp goto-table $look)
       (let* (($2 (aref stack (- sp 1)))
              ($1 (aref stack (- sp 3))))
           (lr-push stack (- sp 4) 49 goto-table ())))
     ew:token-defs))
 
 ; *** Footer ***
-(put 'ew:cm-texts-tok 'decode 'ew-decode-comment)
-(put 'ew:cm-wsp-tok 'decode 'ew-decode-comment)
-(put 'ew:cm-fold-tok 'decode 'ew-decode-comment)
-(put 'ew:cm-qfold-tok 'decode 'ew-decode-comment)
-(put 'ew:cm-qpair-tok 'decode 'ew-decode-comment)
-(put 'ew:us-texts-tok 'decode 'ew-decode-unstructured)
-(put 'ew:us-wsp-tok 'decode 'ew-decode-unstructured)
-(put 'ew:us-fold-tok 'decode 'ew-decode-unstructured)
+(put 'ew:cm-texts 'decode 'ew-decode-comment)
+(put 'ew:cm-wsp 'decode 'ew-decode-comment)
+(put 'ew:cm-fold 'decode 'ew-decode-comment)
+(put 'ew:cm-qfold 'decode 'ew-decode-comment)
+(put 'ew:cm-qpair 'decode 'ew-decode-comment)
+(put 'ew:us-texts 'decode 'ew-decode-unstructured)
+(put 'ew:us-wsp 'decode 'ew-decode-unstructured)
+(put 'ew:us-fold 'decode 'ew-decode-unstructured)