Debian Codegraph @

lib/mllpt-lib/ml-lpt/TODO

raw
1 ================
2 ml-ulex
3 ================
4
5 - new spec format
6 x implement & and ^
7 - unicode char classes (and meeting the standard, generally)
8 - lookahead / and $
9
10 - better lex/parse error messages
11 - allow $ and /, but give error that not supported in --ml-lex-mode
12 - use new region infrastructure and carry line numbers further
13
14 - check that all used start states are defined
15 - check for stuck states
16 - default EOF rules for states that do not have an explicit rule (when
17 other states have an EOF rule)
18
19 x switch ulex backend to functional stream
20
21 ================
22 ml-antlr
23 ================
24
25 X fix error repair
26 x implement heuristic for primary repair
27 x implement secondary recovery
28 x work on error messages
29 x position details -- WSTREAM
30 X deal with keywords
31 - preferred replacements
32 x make prePath required in GLA.*
33 x think about: EBNF predicates should only include true case?
34 x grammar inheritance
35 x custom names for return values
36 x move actions into separate functions
37 x reverse order of %where and => actions
38 x region information
39
40 - add signature to generated parser
41 - add type for %arg
42 - test performance
43
44 - controlling lexer state / lexer multiplexing
45
46 - friendlier errors for prediction tree failure
47 - report multiple failures
48 - more/better comments!
49 X improve check-grammar
50 x allow for and report multiple errors
51 X do additional checking
52 X multiple tokens w/ same abbrev
53
54 - figure out syntax for A (X A)* and A ((X | Y | Z) A)*
55 - automatic left-factoring?
56 - improve DOT output
57 - predicate hoisting (or maybe not...)
58
59 - (*#line directive
60 - ran into problems with ordering in generated file not matching
61 ordering in source
62
63
64
65
66
67 ================================================
68
69 add built-in Unicode character classes
70 look into OCaml-style rules (starting with | rather than :)
71 decrease lexer size and compile time
72 check that nonterminals with parameters are given parameters
73 union/insct/containment for stream pos spans
74
75 speculative:
76 higher-order nonterminal definitions
77
78 ================================================================
79
80 update HISTORY file
81
82 support for %arg
83
84 better handling of EOF/EOP
85 nonunicode charsets
86
87 allow lexer to pass error messages to the parser data structures
88
89 adjustable k
90
91 error repair: get rid of exception-based, instead use 5-token markers
92 ml-antlr pretty-printing of flattened spec
93 make for better type error messages dealing with actions (wrt hygienic parameters)
94 "functorize" lexer over notion of stream positions
95
96 to document:
97 X skip vs continue for lexers
98 - type annotations
99 - ref cells
100 - changes to grammar import
101 - changes to overall decl format
102 X RE syntax, semantics
103 X yylinepos = 1 for the first line of the file
104 X dump.dot and latex output. add switches to ml-antlr and document them
105 - larger example
106
107 X allow type annotations!!!
108 X issue with "-" in character classes; escape codes in general
109 X check for same token specified multiple times with %keyword
110 X new interfaces for ulex (stream textio, imperative textio, string, etc)
111 X verbosify parser error messages ("Try deleting ';'")
112 X support for {1,3} (ranges) in ml-ulex
113 X make sure checking that token names and NT names are disjoint
114 X make ref cells work with := directly
115 X when refcells declared, used = anyway
116 X Matthew Fluet's port for ml-ulex
117 X weird naming issues (spec.grm) eg. UserCode.File_PROD_1_File_File_PROD_1_SUBRULE_1_PROD_1_ACT
118 X refcells: to avoid accidental capture, put type and initial value in
119 UserDeclarations, then load into refcell when instantiating parser
120 X bug: refcell parens in grammar spec do not appear in emitted code, so
121 tuples do not work correctly
122 X use ml-antlr for parsing
123 X use new region infrastructure and carry line numbers further
124 X overhaul CheckGrammar for better error messages
125 X switches for unit actions & debugging actions
126 X line breaks in table-based lexer table
127 X error repair should treat reaching EOF as a successful repair