1
2(SDEFUN |TEMUTL;stripC| ((|s| |String|) (|u| |String|) ($ |String|))
3        (SPROG ((|i| (|Integer|)))
4               (SEQ (LETT |i| (SPADCALL |u| |s| 1 (QREFELT $ 10)))
5                    (EXIT
6                     (COND ((EQL |i| 0) |s|)
7                           ('T
8                            (SPADCALL |s| (SPADCALL |i| (QREFELT $ 13))
9                                      (QREFELT $ 14))))))))
10
11(SDEFUN |TEMUTL;stripCommentsAndBlanks;2S;2| ((|s| |String|) ($ |String|))
12        (SPADCALL (|TEMUTL;stripC| (|TEMUTL;stripC| |s| "++" $) "--" $)
13                  (|STR_to_CHAR| " ") (QREFELT $ 16)))
14
15(SDEFUN |TEMUTL;interpretString;SA;3| ((|s| |String|) ($ |Any|))
16        (SPADCALL (SPADCALL |s| (QREFELT $ 18)) (QREFELT $ 20)))
17
18(DECLAIM (NOTINLINE |TemplateUtilities;|))
19
20(DEFUN |TemplateUtilities| ()
21  (SPROG NIL
22         (PROG (#1=#:G405)
23           (RETURN
24            (COND
25             ((LETT #1# (HGET |$ConstructorCache| '|TemplateUtilities|))
26              (|CDRwithIncrement| (CDAR #1#)))
27             ('T
28              (UNWIND-PROTECT
29                  (PROG1
30                      (CDDAR
31                       (HPUT |$ConstructorCache| '|TemplateUtilities|
32                             (LIST
33                              (CONS NIL (CONS 1 (|TemplateUtilities;|))))))
34                    (LETT #1# T))
35                (COND
36                 ((NOT #1#)
37                  (HREM |$ConstructorCache| '|TemplateUtilities|))))))))))
38
39(DEFUN |TemplateUtilities;| ()
40  (SPROG ((|dv$| NIL) ($ NIL) (|pv$| NIL))
41         (PROGN
42          (LETT |dv$| '(|TemplateUtilities|))
43          (LETT $ (GETREFV 22))
44          (QSETREFV $ 0 |dv$|)
45          (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
46          (|haddProp| |$ConstructorCache| '|TemplateUtilities| NIL (CONS 1 $))
47          (|stuffDomainSlots| $)
48          (SETF |pv$| (QREFELT $ 3))
49          $)))
50
51(MAKEPROP '|TemplateUtilities| '|infovec|
52          (LIST
53           '#(NIL NIL NIL NIL NIL NIL (|InputForm|) (0 . |One|) (|Integer|)
54              (|String|) (4 . |position|) (11 . |Zero|) (|UniversalSegment| 8)
55              (15 . SEGMENT) (20 . |delete|) (|Character|) (26 . |trim|)
56              |TEMUTL;stripCommentsAndBlanks;2S;2| (32 . |parse|) (|Any|)
57              (37 . |interpret|) |TEMUTL;interpretString;SA;3|)
58           '#(|stripCommentsAndBlanks| 42 |interpretString| 47) 'NIL
59           (CONS (|makeByteWordVec2| 1 '(0))
60                 (CONS '#(NIL)
61                       (CONS
62                        '#((|Join|
63                            (|mkCategory|
64                             (LIST
65                              '((|interpretString| ((|Any|) (|String|))) T)
66                              '((|stripCommentsAndBlanks|
67                                 ((|String|) (|String|)))
68                                T))
69                             (LIST) NIL NIL)))
70                        (|makeByteWordVec2| 21
71                                            '(0 6 0 7 3 9 8 0 0 8 10 0 6 0 11 1
72                                              12 0 8 13 2 9 0 0 12 14 2 9 0 0
73                                              15 16 1 6 0 9 18 1 6 19 0 20 1 0
74                                              9 9 17 1 0 19 9 21)))))
75           '|lookupComplete|))
76
77(MAKEPROP '|TemplateUtilities| 'NILADIC T)
78