TODO 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Guard against including a ragel file more than once (newsgroup).
  2. Line numbers in included files refer to the master file. This needs to be
  3. fixed -- from Manoj.
  4. Remove old action embedding and condition setting syntax.
  5. fbreak should advance the current char. Depreciate fbreak and add
  6. fctl_break;
  7. fctl_return <expr>;
  8. fctl_goto <label>;
  9. This is needed for better support of pull scanners.
  10. Eliminate tokend, replace it with the marker variable and add ftokend/ftoklen.
  11. Add the accept action embedding operator: like eof but only for states that end
  12. up final. Add the combined pending/accept action. This becomes a good idea when
  13. eof action execution is moved into the main loop.
  14. Add a prefix operator which sets every state final.
  15. Minimization should remove a condition when the character allows both
  16. the positive and negative sense of the condition. This happens in:
  17. test_every_10_chars = ( ( c when test_len ) c{0,9} )**;
  18. In this example there is non-determinsm that is killed by the priorities, but
  19. since conditions are expanded before priorities are tested, many transitions
  20. end up with test_len || !test_len.
  21. Should be possible to include scanner definitions in another scanner.
  22. Need an "entry name;" feature, causing name to get written out with the other
  23. entry points in the data.
  24. Possibly bring back the old semantics of > in a new operator, or allow it to be
  25. defined somehow.
  26. When priorities are embedded without a name, the name of the current machine is
  27. used. Perhaps a unique name for each instance of the current machine should be
  28. used instead. This idea could work well if applied to user-defined embeddings.
  29. User defined embeddings <-name(a1,a2,...).
  30. User defined operators expr1 <name> expr2.
  31. Doesn't make make sense for [] to be the lambda (zero-length) machine. This
  32. should be the empty set (the empty machine). But then would it be invalid in a
  33. regular expression?
  34. The |> guarded operator and the <| guarded operator need to be added.
  35. An option to turn off the removal of duplicate actions might be useful for
  36. analyzing unintentional nondeterminism.
  37. Might be a good idea to add in some protection against using up all of a
  38. system's memory. This protection could then be removed by people when someone
  39. is sure they want to use a lot of memory.
  40. If a scanner can be optimized into a pure state machine, maybe permit it to be
  41. referenced as a machine definition. Alternately: inline scanners with an
  42. explicit exit pattern.
  43. The split codegen needs a profiler connected to a graph partitioning algorithm.
  44. Die a graceful death when rlcodegen -F receives large alphabets.
  45. It's not currently possible to have more than one machine in a single function
  46. because of label conflicts. Labels should have a unique prefix.
  47. Emit a warning when a subtraction has no effect.
  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. Testing facilities: Quick easy way to query which strings are accepted.
  53. Enumerate all accepted strings. From Nicholas Maxwell Lester.
  54. Add more examples, add more tests and write more documentation.
  55. A debugger would be nice. Ragel could emit a special debug version that
  56. prompted for debug commands that allowed the user to step through the machine
  57. and get details about where they are in their RL.
  58. A quick and easy alternative would be a trace code generation option. This
  59. would open a trace file and list all the active machines at each step of the
  60. input.
  61. Frontend should allow the redefinition of fsm section delimiters.
  62. Do more to obscure ragel's private variables. Just a leading underscore is not
  63. enough. Maybe something more like __ri__.
  64. Some talk about capturing data:
  65. Separate tokstart/tokend from the backtracking. One var for preservation,
  66. called preserve. Write delcarations; produces the necessary variables used by
  67. ragel. Move pattern start pattern end concepts into the general? The
  68. variables which may need to influence the preserve is dependent on the state.
  69. States have a concept of which variables are in use. Can be used for length
  70. restrictions. If there is an exit pattern, it is the explicit way out,
  71. otherwise the start state and all final states are a way out.