-
Notifications
You must be signed in to change notification settings - Fork 0
/
srg.tdl
76 lines (59 loc) · 1.37 KB
/
srg.tdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
;;; -*- Mode: tdl; Coding: utf-8; -*-
;;;
:begin :type.
;;
;; the type hierarchy
;;
:include "fundamentals".
:include "hdtypes.tdl".
:include "letypes.tdl".
:include "irtypes.tdl".
:include "lrtypes.tdl".
:include "srtypes.tdl".
:include "tmt.tdl".
:end :type.
;;
;; token mapping: manipulate the token lattice prior to lexical look-up
:begin :instance :status token-mapping-rule.
;:include "tmr/prelude".
;:include "tmr/pos".
:include "tmr/finis".
:end :instance.
;; lexical filtering: reduce the chart after lexical instantiation and the
;; application of lexical rules, right before we turn loose syntactic rules.
;;
:begin :instance :status lexical-filtering-rule.
:include "lfr.tdl".
:end :instance.
;;
;; lexicon entries (instances of status lex-entry or generic-lex-entry)
;;
:begin :instance :status lex-entry.
:include "lexicon".
:end :instance.
:begin :instance :status generic-lex-entry.
:include "generics.tdl".
:end :instance.
;;
;; grammar rules and lexical rules (instances of status rule)
;;
:begin :instance :status rule.
:include "srules".
:end :instance.
:begin :instance :status lex-rule.
:include "lrules".
:include "inflr".
; :include "inflrl".
:end :instance.
;;
;; parse-tree labels (instances)
;;
:begin :instance.
:include "labels".
:end :instance.
;;
;; start symbols of the grammar (instances)
;;
:begin :instance.
:include "roots".
:end :instance.