Removed a completed item.
[external/ragel.git] / TODO
1 Add an option (probably -L) for turning off line numbers for debugging the
2 generated state machine.
3
4 Expressions of the form: expr1 <: expr2 . expr3
5 sometimes don't behave as expected. If expr2 contains the empty string then
6 it's possible for the machine to escape to expr3. This is somewhat unexpected.
7 The empty string does count as moving through the right machine so there should
8 not be an exception for this case.
9 Using the stronger implementation: ( expr1 $1 %0 . expr2 ) will solve the problem.
10
11 Also, there is potential for nondeterminism to persist via the empty string
12 with the :> and :>> operators. Should also guard against this using leaving
13 priorities.
14
15 The |> guarded operator and the <| guarded operator need to be added.
16
17 The fixed size stack is a problem for manual recursion of unlimited depth.
18
19 An option to turn off the removal of duplicate actions might be useful for
20 analyzing unintentional nondeterminism.
21
22 Might be a good idea to add in some protection against using up all of a
23 system's memory. This protection could then be removed by people when someone
24 is sure they want to use a lot of memory.
25
26 fbreak should advance the current char. Depreciate fbreak and add
27     fctl_break;
28     fctl_return <expr>;
29     fctl_goto <label>;
30
31 Should the fbreak functions execute the to-state actions of the target state?
32
33 It should be possible to import/export definitions.
34
35 If a scanner can be optimized into a pure state machine, maybe permit it to be
36 referenced as a machine definition. Alternately: inline scanners with an
37 explicit exit pattern.
38
39 The split codegen needs a profiler connected to a graph partitioning algorithm.
40
41 Die a graceful death when rlcodegen -F receives large alphabets.
42
43 It's not currently possible to have more than one machine in a single function
44 because of label conflicts. Labels should have a unique prefix.
45
46 Emit a warning when a subtraction has no effect.
47
48 Emit a warning when unnamed priorities are used in longest match machines.
49 These priorities may unexpectedly interact across longest-match items. Changing
50 the language such that unwated interaction cannot happen would require naming
51 longest-match items.
52
53 Testing facilities: Quick easy way to query which strings are accepted.
54 Enumerate all accepted strings. From Nicholas Maxwell Lester.
55
56 Add more examples, add more tests and write more documentation.
57
58 A debugger would be nice. Ragel could emit a special debug version that
59 prompted for debug commands that allowed the user to step through the machine
60 and get details about where they are in their RL.
61
62 A quick and easy alternative would be a trace code generation option. This
63 would open a trace file and list all the active machines at each step of the
64 input.
65
66 Frontend should allow the redefinition of fsm section delimiters.
67
68 Do more to obscure ragel's private variables. Just a leading underscore is not
69 enough. Maybe something more like __ri__.
70
71 Some talk about capturing data:
72
73 Separate tokstart/tokend from the backtracking.  One var for preservation,
74 called preserve.  Write delcarations;  produces the necessary variables used by
75 ragel.  Move pattern start pattern end concepts into the general?  The
76 variables which may need to influence the preserve is dependent on the state.
77 States have a concept of which variables are in use.  Can be used for length
78 restrictions.  If there is an exit pattern, it is the explicit way out,
79 otherwise the start state and all final states are a way out.