author | wenzelm |
Wed, 11 Jul 2007 00:29:51 +0200 | |
changeset 23729 | d1ba656978c5 |
parent 23721 | aa088ef9237c |
child 23788 | 54ce229dc858 |
permissions | -rw-r--r-- |
5825 | 1 |
(* Title: Pure/Isar/outer_lex.ML |
2 |
ID: $Id$ |
|
3 |
Author: Markus Wenzel, TU Muenchen |
|
4 |
||
5 |
Outer lexical syntax for Isabelle/Isar. |
|
6 |
*) |
|
7 |
||
8 |
signature OUTER_LEX = |
|
9 |
sig |
|
10 |
datatype token_kind = |
|
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
11 |
Command | Keyword | Ident | LongIdent | SymIdent | Var | TypeIdent | TypeVar | Nat | |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
12 |
String | AltString | Verbatim | Space | Comment | Sync | Malformed | Error of string | EOF |
15143
05b5995f214e
Make token an eqtype to assist reconstructing input
aspinall
parents:
14991
diff
changeset
|
13 |
eqtype token |
5825 | 14 |
val str_of_kind: token_kind -> string |
15 |
val stopper: token * (token -> bool) |
|
6859 | 16 |
val not_sync: token -> bool |
5825 | 17 |
val not_eof: token -> bool |
18 |
val position_of: token -> Position.T |
|
19 |
val pos_of: token -> string |
|
23721 | 20 |
val kind_of: token -> token_kind |
5825 | 21 |
val is_kind: token_kind -> token -> bool |
7026 | 22 |
val keyword_with: (string -> bool) -> token -> bool |
16029 | 23 |
val ident_with: (string -> bool) -> token -> bool |
5825 | 24 |
val is_proper: token -> bool |
9130 | 25 |
val is_semicolon: token -> bool |
17069 | 26 |
val is_comment: token -> bool |
8580 | 27 |
val is_begin_ignore: token -> bool |
28 |
val is_end_ignore: token -> bool |
|
17069 | 29 |
val is_blank: token -> bool |
8651 | 30 |
val is_newline: token -> bool |
14991 | 31 |
val unparse: token -> string |
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
32 |
val name_of: token -> string |
5825 | 33 |
val val_of: token -> string |
5876 | 34 |
val is_sid: string -> bool |
9130 | 35 |
val !!! : string -> (Position.T * 'a -> 'b) -> Position.T * 'a -> 'b |
36 |
val incr_line: ('a -> 'b * 'c) -> Position.T * 'a -> 'b * (Position.T * 'c) |
|
37 |
val keep_line: ('a -> 'b * 'c) -> Position.T * 'a -> 'b * (Position.T * 'c) |
|
38 |
val scan_blank: Position.T * Symbol.symbol list |
|
39 |
-> Symbol.symbol * (Position.T * Symbol.symbol list) |
|
40 |
val scan_string: Position.T * Symbol.symbol list -> string * (Position.T * Symbol.symbol list) |
|
7026 | 41 |
val scan: (Scan.lexicon * Scan.lexicon) -> |
5825 | 42 |
Position.T * Symbol.symbol list -> token * (Position.T * Symbol.symbol list) |
23721 | 43 |
val source: bool option -> (unit -> Scan.lexicon * Scan.lexicon) -> |
7026 | 44 |
Position.T -> (Symbol.symbol, 'a) Source.source -> |
7682
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
45 |
(token, Position.T * (Symbol.symbol, 'a) Source.source) Source.source |
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
46 |
val source_proper: (token, 'a) Source.source -> |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
47 |
(token, (token, 'a) Source.source) Source.source |
9130 | 48 |
val make_lexicon: string list -> Scan.lexicon |
5825 | 49 |
end; |
50 |
||
51 |
structure OuterLex: OUTER_LEX = |
|
52 |
struct |
|
53 |
||
54 |
||
55 |
(** tokens **) |
|
56 |
||
57 |
(* datatype token *) |
|
58 |
||
59 |
datatype token_kind = |
|
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
60 |
Command | Keyword | Ident | LongIdent | SymIdent | Var | TypeIdent | TypeVar | Nat | |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
61 |
String | AltString | Verbatim | Space | Comment | Sync | Malformed | Error of string | EOF; |
5825 | 62 |
|
63 |
datatype token = Token of Position.T * (token_kind * string); |
|
64 |
||
65 |
val str_of_kind = |
|
7026 | 66 |
fn Command => "command" |
67 |
| Keyword => "keyword" |
|
5825 | 68 |
| Ident => "identifier" |
69 |
| LongIdent => "long identifier" |
|
70 |
| SymIdent => "symbolic identifier" |
|
71 |
| Var => "schematic variable" |
|
72 |
| TypeIdent => "type variable" |
|
73 |
| TypeVar => "schematic type variable" |
|
74 |
| Nat => "number" |
|
75 |
| String => "string" |
|
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
76 |
| AltString => "back-quoted string" |
5825 | 77 |
| Verbatim => "verbatim text" |
7682
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
78 |
| Space => "white space" |
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
79 |
| Comment => "comment text" |
6859 | 80 |
| Sync => "sync marker" |
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
81 |
| Malformed => "malformed symbolic character" |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
82 |
| Error _ => "bad input" |
5825 | 83 |
| EOF => "end-of-file"; |
84 |
||
85 |
||
10748 | 86 |
(* control tokens *) |
6859 | 87 |
|
5825 | 88 |
val eof = Token (Position.none, (EOF, "")); |
89 |
||
90 |
fun is_eof (Token (_, (EOF, _))) = true |
|
91 |
| is_eof _ = false; |
|
92 |
||
93 |
val stopper = (eof, is_eof); |
|
94 |
val not_eof = not o is_eof; |
|
95 |
||
96 |
||
23678 | 97 |
fun not_sync (Token (_, (Sync, _))) = false |
98 |
| not_sync _ = true; |
|
99 |
||
100 |
||
5825 | 101 |
(* get position *) |
102 |
||
103 |
fun position_of (Token (pos, _)) = pos; |
|
104 |
val pos_of = Position.str_of o position_of; |
|
105 |
||
106 |
||
107 |
(* kind of token *) |
|
108 |
||
23721 | 109 |
fun kind_of (Token (_, (k, _))) = k; |
110 |
||
5825 | 111 |
fun is_kind k (Token (_, (k', _))) = k = k'; |
112 |
||
7026 | 113 |
fun keyword_with pred (Token (_, (Keyword, x))) = pred x |
114 |
| keyword_with _ _ = false; |
|
5825 | 115 |
|
16029 | 116 |
fun ident_with pred (Token (_, (Ident, x))) = pred x |
117 |
| ident_with _ _ = false; |
|
118 |
||
7682
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
119 |
fun is_proper (Token (_, (Space, _))) = false |
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
120 |
| is_proper (Token (_, (Comment, _))) = false |
5825 | 121 |
| is_proper _ = true; |
122 |
||
9195 | 123 |
fun is_semicolon (Token (_, (Keyword, ";"))) = true |
9130 | 124 |
| is_semicolon _ = false; |
125 |
||
17069 | 126 |
fun is_comment (Token (_, (Comment, _))) = true |
127 |
| is_comment _ = false; |
|
128 |
||
8580 | 129 |
fun is_begin_ignore (Token (_, (Comment, "<"))) = true |
130 |
| is_begin_ignore _ = false; |
|
131 |
||
132 |
fun is_end_ignore (Token (_, (Comment, ">"))) = true |
|
133 |
| is_end_ignore _ = false; |
|
134 |
||
8651 | 135 |
|
17069 | 136 |
(* blanks and newlines -- space tokens obey lines *) |
8651 | 137 |
|
23678 | 138 |
fun is_blank (Token (_, (Space, x))) = not (String.isSuffix "\n" x) |
17069 | 139 |
| is_blank _ = false; |
140 |
||
23678 | 141 |
fun is_newline (Token (_, (Space, x))) = String.isSuffix "\n" x |
8651 | 142 |
| is_newline _ = false; |
143 |
||
5825 | 144 |
|
14991 | 145 |
(* token content *) |
9155 | 146 |
|
18547 | 147 |
fun escape q = |
148 |
implode o map (fn s => if s = q orelse s = "\\" then "\\" ^ s else s) o Symbol.explode; |
|
149 |
||
14991 | 150 |
fun unparse (Token (_, (kind, x))) = |
151 |
(case kind of |
|
18547 | 152 |
String => x |> quote o escape "\"" |
153 |
| AltString => x |> enclose "`" "`" o escape "`" |
|
14991 | 154 |
| Verbatim => x |> enclose "{*" "*}" |
155 |
| Comment => x |> enclose "(*" "*)" |
|
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
156 |
| Sync => "" |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
157 |
| Malformed => Output.escape_malformed x |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
158 |
| EOF => "" |
14991 | 159 |
| _ => x); |
160 |
||
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
161 |
fun name_of tok = |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
162 |
if is_semicolon tok then "terminator" |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
163 |
else |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
164 |
(case unparse tok of |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
165 |
"" => str_of_kind (kind_of tok) |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
166 |
| s => str_of_kind (kind_of tok) ^ " " ^ s); |
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
167 |
|
5825 | 168 |
fun val_of (Token (_, (_, x))) = x; |
169 |
||
170 |
fun token_leq (Token (_, (_, x)), Token (_, (_, x'))) = x <= x'; |
|
171 |
||
172 |
||
173 |
||
174 |
(** scanners **) |
|
175 |
||
176 |
fun change_prompt scan = Scan.prompt "# " scan; |
|
177 |
||
178 |
||
179 |
(* diagnostics *) |
|
180 |
||
181 |
fun lex_err msg ((pos, cs), _) = "Outer lexical error" ^ Position.str_of pos ^ ": " ^ msg cs; |
|
9130 | 182 |
fun !!! msg scan = Scan.!! (lex_err (K msg)) scan; |
5825 | 183 |
|
184 |
||
185 |
(* line numbering *) |
|
186 |
||
187 |
fun incr_line scan = Scan.depend (fn pos => scan >> pair (Position.inc pos)); |
|
188 |
val keep_line = Scan.lift; |
|
189 |
||
190 |
val scan_blank = |
|
191 |
incr_line ($$ "\n") || |
|
192 |
keep_line (Scan.one Symbol.is_blank); |
|
193 |
||
194 |
||
195 |
(* scan symbolic idents *) |
|
196 |
||
20664 | 197 |
val is_sym_char = member (op =) (explode "!#$%&*+-/<=>?@^_|~"); |
5825 | 198 |
|
8231 | 199 |
val scan_symid = |
21858
05f57309170c
avoid conflict with Alice keywords: renamed pack -> implode, unpack -> explode, any -> many, avoided assert;
wenzelm
parents:
20982
diff
changeset
|
200 |
Scan.many1 is_sym_char >> implode || |
8231 | 201 |
Scan.one Symbol.is_symbolic; |
5825 | 202 |
|
8231 | 203 |
fun is_symid str = |
204 |
(case try Symbol.explode str of |
|
15531 | 205 |
SOME [s] => Symbol.is_symbolic s orelse is_sym_char s |
206 |
| SOME ss => forall is_sym_char ss |
|
8231 | 207 |
| _ => false); |
208 |
||
20982 | 209 |
fun is_sid "begin" = false |
210 |
| is_sid ":" = true |
|
22873 | 211 |
| is_sid "::" = true |
20982 | 212 |
| is_sid s = is_symid s orelse Syntax.is_identifier s; |
5825 | 213 |
|
214 |
||
215 |
(* scan strings *) |
|
216 |
||
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
217 |
local |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
218 |
|
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
219 |
fun scan_str q = |
7682
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
220 |
scan_blank || |
9130 | 221 |
keep_line ($$ "\\") |-- !!! "bad escape character in string" |
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
222 |
(scan_blank || keep_line ($$ q || $$ "\\")) || |
19305 | 223 |
keep_line (Scan.one (fn s => s <> q andalso s <> "\\" andalso |
224 |
Symbol.not_sync s andalso Symbol.not_eof s)); |
|
5825 | 225 |
|
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
226 |
fun scan_strs q = |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
227 |
keep_line ($$ q) |-- |
9130 | 228 |
!!! "missing quote at end of string" |
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
229 |
(change_prompt ((Scan.repeat (scan_str q) >> implode) --| keep_line ($$ q))); |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
230 |
|
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
231 |
in |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
232 |
|
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
233 |
val scan_string = scan_strs "\""; |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
234 |
val scan_alt_string = scan_strs "`"; |
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
235 |
|
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
236 |
end; |
5825 | 237 |
|
238 |
||
239 |
(* scan verbatim text *) |
|
240 |
||
241 |
val scan_verb = |
|
242 |
scan_blank || |
|
19305 | 243 |
keep_line ($$ "*" --| Scan.ahead (~$$ "}")) || |
244 |
keep_line (Scan.one (fn s => s <> "*" andalso Symbol.not_sync s andalso Symbol.not_eof s)); |
|
5825 | 245 |
|
246 |
val scan_verbatim = |
|
6743
5d50225637c8
changed {| |} verbatim syntax to {* *} in order to simplify ProofGeneral setup;
wenzelm
parents:
5876
diff
changeset
|
247 |
keep_line ($$ "{" -- $$ "*") |-- |
9130 | 248 |
!!! "missing end of verbatim text" |
6743
5d50225637c8
changed {| |} verbatim syntax to {* *} in order to simplify ProofGeneral setup;
wenzelm
parents:
5876
diff
changeset
|
249 |
(change_prompt ((Scan.repeat scan_verb >> implode) --| keep_line ($$ "*" -- $$ "}"))); |
5825 | 250 |
|
251 |
||
252 |
(* scan space *) |
|
253 |
||
19305 | 254 |
fun is_space s = Symbol.is_blank s andalso s <> "\n"; |
5825 | 255 |
|
256 |
val scan_space = |
|
21858
05f57309170c
avoid conflict with Alice keywords: renamed pack -> implode, unpack -> explode, any -> many, avoided assert;
wenzelm
parents:
20982
diff
changeset
|
257 |
(keep_line (Scan.many1 is_space) -- Scan.optional (incr_line ($$ "\n")) "" || |
05f57309170c
avoid conflict with Alice keywords: renamed pack -> implode, unpack -> explode, any -> many, avoided assert;
wenzelm
parents:
20982
diff
changeset
|
258 |
keep_line (Scan.many is_space) -- incr_line ($$ "\n")) >> (fn (cs, c) => implode cs ^ c); |
5825 | 259 |
|
260 |
||
261 |
(* scan nested comments *) |
|
262 |
||
263 |
val scan_cmt = |
|
264 |
Scan.lift scan_blank || |
|
265 |
Scan.depend (fn d => keep_line ($$ "(" ^^ $$ "*") >> pair (d + 1)) || |
|
266 |
Scan.depend (fn 0 => Scan.fail | d => keep_line ($$ "*" ^^ $$ ")") >> pair (d - 1)) || |
|
19305 | 267 |
Scan.lift (keep_line ($$ "*" --| Scan.ahead (~$$ ")"))) || |
268 |
Scan.lift (keep_line (Scan.one (fn s => |
|
269 |
s <> "*" andalso Symbol.not_sync s andalso Symbol.not_eof s))); |
|
5825 | 270 |
|
271 |
val scan_comment = |
|
272 |
keep_line ($$ "(" -- $$ "*") |-- |
|
9130 | 273 |
!!! "missing end of comment" |
5825 | 274 |
(change_prompt |
7682
46de8064c93c
added Space, Comment token kinds (keep actual text);
wenzelm
parents:
7477
diff
changeset
|
275 |
(Scan.pass 0 (Scan.repeat scan_cmt >> implode) --| keep_line ($$ "*" -- $$ ")"))); |
5825 | 276 |
|
277 |
||
23678 | 278 |
(* scan malformed symbols *) |
279 |
||
280 |
local |
|
281 |
||
282 |
val scan_mal = |
|
283 |
scan_blank || |
|
284 |
keep_line (Scan.one (fn s => |
|
285 |
s <> Symbol.end_malformed andalso Symbol.not_sync s andalso Symbol.not_eof s)); |
|
286 |
||
287 |
in |
|
288 |
||
289 |
val scan_malformed = |
|
290 |
keep_line ($$ Symbol.malformed) |-- |
|
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
291 |
change_prompt (Scan.repeat scan_mal >> implode) |
23678 | 292 |
--| keep_line (Scan.option ($$ Symbol.end_malformed)); |
293 |
||
294 |
end; |
|
295 |
||
296 |
||
5825 | 297 |
(* scan token *) |
298 |
||
9130 | 299 |
fun scan (lex1, lex2) = |
5825 | 300 |
let |
9130 | 301 |
val scanner = Scan.state :-- (fn pos => |
302 |
let |
|
303 |
fun token k x = Token (pos, (k, x)); |
|
304 |
fun sync _ = token Sync Symbol.sync; |
|
305 |
in |
|
306 |
scan_string >> token String || |
|
17164
a786e1a1ce02
added AltString token (delimited by ASCII back-quotes);
wenzelm
parents:
17069
diff
changeset
|
307 |
scan_alt_string >> token AltString || |
9130 | 308 |
scan_verbatim >> token Verbatim || |
309 |
scan_space >> token Space || |
|
310 |
scan_comment >> token Comment || |
|
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
311 |
scan_malformed >> token Malformed || |
9130 | 312 |
keep_line (Scan.one Symbol.is_sync >> sync) || |
313 |
keep_line (Scan.max token_leq |
|
314 |
(Scan.max token_leq |
|
315 |
(Scan.literal lex1 >> (token Keyword o implode)) |
|
316 |
(Scan.literal lex2 >> (token Command o implode))) |
|
317 |
(Syntax.scan_longid >> token LongIdent || |
|
318 |
Syntax.scan_id >> token Ident || |
|
319 |
Syntax.scan_var >> token Var || |
|
320 |
Syntax.scan_tid >> token TypeIdent || |
|
321 |
Syntax.scan_tvar >> token TypeVar || |
|
322 |
Syntax.scan_nat >> token Nat || |
|
323 |
scan_symid >> token SymIdent)) |
|
324 |
end) >> #2; |
|
14729 | 325 |
in !! (lex_err (fn cs => "bad input " ^ quote (Symbol.beginning 10 cs))) scanner end; |
5825 | 326 |
|
327 |
||
9130 | 328 |
(* token sources *) |
5825 | 329 |
|
23678 | 330 |
local |
331 |
||
6859 | 332 |
val is_junk = (not o Symbol.is_blank) andf Symbol.not_sync andf Symbol.not_eof; |
23678 | 333 |
|
23682
cf4773532006
nested source: explicit interactive flag for recover avoids duplicate errors;
wenzelm
parents:
23678
diff
changeset
|
334 |
fun recover msg = Scan.state :-- (fn pos => |
23729
d1ba656978c5
separated Malformed (symbolic char) from Error (bad input);
wenzelm
parents:
23721
diff
changeset
|
335 |
keep_line (Scan.many is_junk) >> (fn xs => [Token (pos, (Error msg, implode xs))])) >> #2; |
23678 | 336 |
|
337 |
in |
|
5825 | 338 |
|
339 |
fun source do_recover get_lex pos src = |
|
340 |
Source.source' pos Symbol.stopper (Scan.bulk (fn xs => scan (get_lex ()) xs)) |
|
23682
cf4773532006
nested source: explicit interactive flag for recover avoids duplicate errors;
wenzelm
parents:
23678
diff
changeset
|
341 |
(Option.map (rpair recover) do_recover) src; |
23678 | 342 |
|
343 |
end; |
|
5825 | 344 |
|
9130 | 345 |
fun source_proper src = src |> Source.filter is_proper; |
346 |
||
347 |
||
348 |
(* lexicons *) |
|
349 |
||
350 |
val make_lexicon = Scan.make_lexicon o map Symbol.explode; |
|
5825 | 351 |
|
352 |
end; |