Added item.
[external/ragel.git] / TODO
1 The fixed size stack is a problem for manual recursion of unlimited depth.
2
3 An option to turn off the removal of duplicate actions might be useful for
4 analyzing unintentional nondeterminism.
5
6 To avoid confusion, there should be a correspondence between state numbers in
7 the generated code, graphviz and the XML.
8
9 Might be a good idea to add in some protection against using up all of a
10 system's memory. This protection could then be removed by people when someone
11 is sure they want to use a lot of memory.
12
13 fbreak should advance the current char. Depreciate fbreak and add
14     fctl_break;
15     fctl_return <expr>;
16     fctl_goto <label>;
17
18 It should be possible to import/export definitions.
19
20 If a scanner can be optimized into a pure state machine, maybe permit it to be
21 referenced as a machine definition. Alternately: inline scanners with an
22 explicit exit pattern.
23
24 The split codegen needs a profiler connected to a graph partitioning algorithm.
25
26 Die a graceful death when rlcodegen -F receives large alphabets.
27
28 It's not currently possible to have more than one machine in a single function
29 because of label conflicts. Labels should have a unique prefix.
30
31 Emit a warning when a subtraction has no effect.
32
33 Emit a warning when unnamed priorities are used in longest match machines.
34 These priorities may unexpectedly interact across longest-match items. Changing
35 the language such that unwated interaction cannot happen would require naming
36 longest-match items.
37
38 Testing facilities: Quick easy way to query which strings are accepted.
39 Enumerate all accepted strings. From Nicholas Maxwell Lester.
40
41 Add more examples, add more tests and write more documentation.
42
43 A debugger would be nice. Ragel could emit a special debug version that
44 prompted for debug commands that allowed the user to step through the machine
45 and get details about where they are in their RL.
46
47 Frontend should allow the redefinition of fsm section delimiters.
48
49 Do more to obscure ragel's private variables. Just a leading underscore is not
50 enough. Maybe something more like __ri__.
51
52 Some talk about capturing data:
53
54 Separate tokstart/tokend from the backtracking.  One var for preservation,
55 called preserve.  Write delcarations;  produces the necessary variables used by
56 ragel.  Move pattern start pattern end concepts into the general?  The
57 variables which may need to influence the preserve is dependent on the state.
58 States have a concept of which variables are in use.  Can be used for length
59 restrictions.  If there is an exit pattern, it is the explicit way out,
60 otherwise the start state and all final states are a way out.