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