The "tokstart" and "tokend" variables were changed to "ts" and "te".
[external/ragel.git] / ChangeLog
1 Ragel 6.0 - TBR
2 ===============
3  -Remove the 'noend' write option from examples/atoi.rl. This example is
4   referenced a lot as a first example and as such it shouldn't contain a
5   special purpose write option like 'noend'.
6  -Introcuded the "eof" variable for indicating the end of file. The p variable
7   is checked against eof when the processing loop reaches the end of a block.
8   If p == eof at this time then the EOF actions are executed. The variable is
9   required only when EOF actions have been emebedded.
10  -The "write eof" command is no longer needed and was removed.
11  -Scanners now use EOF actions to generate tokens. This eliminates the need to
12   flush the last token.
13  -Restructured the Java driver; a switch statement with fallthrough cases are
14   now used to emulate gotos.
15  -Ruby code generation was also restructured. Gotos are elmulated using a
16   series of if tests. 
17  -Gone back to 3.X semantics for >, % and error actions. The > operator also
18   embeds a leaving action/priority into the start state if it is final. If EOF
19   happens in a state with a leaving operator then leaving action it is
20   executed. If EOF happens in a non-final state that has an error action, the
21   error action is executed.
22  -The Ragel program now executes frontend and backend processes separately,
23   connecting them with a temporary file in the current directory. Without the
24   -f option the "ragel" program marshals arguments and calls the frontend and
25   backend. With the -f option the "ragel" program acts as the frontend only.
26  -Added name finding for executables. If any forward slash is found in argv0
27   then it is assumed that the path is explicit and the path to the backend
28   executable should be derived from that. Whe check that location and also go
29   up one then inside a directory of the same name in case we are executing
30   from the source tree. If no forward slash is found it is assumed the file is
31   being run from the installed location. The PREFIX supplied during
32   configuration is used.
33  -On windows GetModuleFileNameEx is used to find out where the the current
34   process's binary is. That location is searched first. If that fails then we
35   go up one directory and look for the executable inside a directory of the
36   same name in case we are executing from the source tree.
37  -Changed the -l option in rlgen-cd to -L because it is covered in the
38   frontend. Added a passthrough in the frontend for the backend options.
39  -Dot file generation can now be invoked using the -V option to the parent. We
40   now require an input file. If standard in is used then we don't have a file
41   name on which to base the output.
42  -Rather than have the frontend process call the backend, the ragel program
43   now calls the frontend (itself with the -f option) and the backend.
44  -Able to build native windows executables using Cygwin+MinGW. 
45  -Patch from David Waite: Large arrays are now created by copying in the data
46   from smaller arrays using System.arraycopy(). This eliminates the debug data
47   associated with explicit initialization statements. It is also much easier
48   on the java compiler which can run out of memory compiling very large
49   machines. The downside is that it takes slightly longer to initialize static
50   data.
51  -The fbreak statement now advances p.
52  -In the :> :>> and <: operators it was possible for the priority assignment
53   to be bypassed via the zero length string. In :> this was fixed
54   automatically with the semantics change to the entering priority operator.
55   If the start state is final it now embeds a leaving action into it,
56   preventing persistance through the zero length string. In :>> and <: this
57   was fixed explicitly. With <: the entering priority operator was used and
58   with :> a sepecial exception was added. Since it uses the finishing
59   transition operator it also adds a leaving priority to the start state if it
60   is final.
61  -Ranlib is now run on the archives. Patch from Kenny MacDermid.
62  -The case statement syntax in ruby code generation used a form depreciated in
63   Ruby 1.9. Updated it.
64  -Made a number of fixes that eliminate warnings in GCC 4.3. Mostly concern
65   the now depreciate automatic conversion of string contsants to "char*" type.
66   Other fixes include adding parenthesis around && within ||.
67  -The "tokstart" and "tokend" variables were changed to "ts" and "te".
68
69 Ragel 5.25 - Dec 24, 2007
70 =========================
71  -Fixed segfault reported by Ryan Phelps. Affected Java and Ruby code
72   generation. The dataExpr variable was not initialized.
73  -Fixed incorrect case label in test/runtests. Caused Objective-C tests to be
74   ignored.
75  -Added missing include to common.cpp.
76
77 Ragel 5.24 - Sep 16, 2007
78 =========================
79  -Applied patch from Victor Hugo Borja <vic@rubyforge.org>. This patch
80   implements -T1 -F0 -F1 and -G0 in the ruby code generator. Goto-driven code
81   generation is experimental and requires rubinius asm directives (specify
82   with --rbx option). These code generators pass all the ruby tests.
83  -If the condition embedding code runs out of available characters in the
84   keyspace an error message is emitted.
85  -The first example that appeared in the manual used the special-purpose
86   'noend' write option. This caused confusion. Now a basic example appears
87   first.
88  -Added two new statements: prepush and postpop. These are code blocks that
89   are written out during call and return statements. The prepush code is
90   written immediately before pushing the current state to the state stack
91   during a call. The postpop code is written immediately after popping the
92   current state during return. These can be used to implement a dynamically
93   resizable stack. 
94
95 Ragel 5.23 - Jul 24, 2007
96 =========================
97  -Eliminated the use of callcc as an alternative to goto. Instead, the named
98   breaks implementation used in the Java code generator is imitated using
99   control flow variables.
100  -Improved the error message given when there is a write statement but no
101   machine instantiations and hence no state machine.
102  -Documentation improvements: updates to "Machine Instantiation", "Write Init"
103   and "Write Exports" sectons. Added the "Variables Used by Ragel" section.
104  -Renamed "Entering Actions" to "Starting Actions."
105  -Other documentation updates.
106
107 Ragel 5.22 - June 14, 2007
108 ==========================
109  -Bug fix: need to isolate the start state of a scanner before setting the
110   to-state and from-state actions which clear and set tokstart. This affected
111   very simple scanners only. Most scanners have an isolated start state due to
112   the pattern structure.
113  -Bug fix: when -S or -M was given the ragel version number was not emitted,
114   causing the backend to reject the intermediate format. From Tim Potter.
115  -The p varialbe is now set up at the beginning of a scanner action, rather
116   than at the end. This leaves scanner actions free to manipulate p and
117   removes the need for the special holdTE and execTE (TE for tokend) versions
118   of hold and exec. It also removes the need to set p = tokend-1 immediately
119   before any control flow. We loose the ability to determine where in the
120   input stream a scanner action is executed, however this information is of
121   little use because it is primarily an artifact of the scanner implementation
122   (sometimes the last char, other times later on). The gains of this change
123   are consistency and simplicity.
124  -The "data" variable (used in Java and Ruby code generation only) can now be
125   overridden using the variable statement.
126
127 Ragel 5.21 - May 9, 2007
128 ========================
129  -Fixed an inconsistency in the value of p following an error. In the C
130   directly executable code (rlgen-cd -G2) p is left at the character where
131   the error occurred, which is correct. In all other code generators it was
132   left at the following character. This was fixed. Now in all code generators
133   p is left at the character where the error occurred.
134  -Bug fix: when fhold was used in scanner pattern actions which get executed
135   on the last character of the pattern (pattern matches which do not require
136   any lookahead), fhold was modifying p instead of tokend. This was fixed and
137   the patact.rl test was modified to cover the case.
138  -Fixed typos in the guide, improved the state action embedding operator
139   section and added subsections on the variable, import, and export
140   statements.
141  -Implemented a better solution than the pri hack for resolving the '-'
142   ambiguity: force a shortest match of term.
143  -Fixed bugs in the binary searching for condition keys in both the Ruby and
144   Java code generation. 
145  -Can now embed the negative sense of a condition. Added a language-
146   independent test case for this feature and the necessary transformation
147   support.
148  -Added new condition embedding syntax:
149     expr inwhen cond   - The transitions into the machine (starting transitions).
150     expr outwhen cond  - The pending transitions out of the machine.
151  -The argument to the variable statement which affects the name of the current
152   state variable was changed from "curstate" to "cs" (the default name used
153   for the current state)
154  -Implemented the other variables names in the variable statement. Now all
155   variables (p, pe, cs, top, stack, act, tokstart, tokend) can be renamed.
156  -Parse errors in the intermediate XML file now cause the backend to exit
157   immediately rather then forge on. The recovery infrastructure isn't there
158   and segfaults are likely.
159  -When no input is given to the backend program, it should not print an error
160   message, it should just return a non-zero exit status. The assumption is
161   that the frontend printed an error.
162  -The version number is now included in the intermediate file. An error is
163   emitted if there is a mismatch.
164  -The alphabet type is now communicated from the frontend to the backend using
165   a one-word internal name instead of an array offset.
166  -The Ruby host language types had been just copied from Java. Reduced them to
167   two basic types: char and int, both signed with the usual C sizes.
168
169 Ragel 5.20 - Apr 7, 2007
170 ========================
171  -The cs variable is now always initialized, unless the "nocs" option is given
172   to the write init command. If there is no main machine, cs is initialized to
173   the entry point defined by the last machine instantiation.
174  -A number of fixes were made to the Ruby code generator.
175  -The frontend now scans ruby comments and regular expressions.
176  -A transformation for Ruby was added to the language-independent test suite.
177   The Ruby code generator passes on all the language-independent tests.
178  -A new Ruby test and two language-independent tests were added.
179  -Some portability fixes were made (Patches from Josef Goettgens and Aaron
180   Campbell).
181  -Fixed a make dependency bug which caused a problem for parallel building
182   (Patch from Jeremy Hinegardner).
183
184 Ragel 5.19 - Mar 14, 2007
185 =========================
186  -Added an import statement to ragel. This statement takes a literal string as
187   an argument, interprets it as a file name, then scrapes the file for
188   sequences of tokens that match the following forms. Tokens inside ragel
189   sections are ignored. An example is in test/import1.rl
190     name = number
191     name = lit_string
192     "define" name number
193     "define" name lit_string
194  -Added an export mechanism which writes defines for single character machines
195   that have been tagged with the export keyword in their definition. Defines
196   are used for C, ints for D, Java and Ruby. Examples of the export feature
197   are in test/export*.rl.
198  -All machine instantiations are now always generated, even if they are not
199   referenced. In the backend, entry points for all instantiations are written
200   out alongside start, error and first final states.
201  -If the main machine is not present then do not emit an error. Generate the
202   machine without a start state and do not initialize cs in the write init
203   code.
204  -Added an option -l to rlgen-cd which inhibits the writing of #line
205   directives.
206  -Added a new syntax for verbose embeddings. This adds parentheses: 
207       $from(action_name);
208   Verbose embeddings without parentheses can make code difficult to read
209   because they force a space in the middle of an action embedding. There is a
210   tendency to associtate spaces with concatenation. Without syntax
211   highlighting to make it clear that the embedding type is a keyword, the
212   problem is especially bad. The danger is that a verbose embedding could be
213   read as an embedding of the keyword representing the empbedding type. With
214   parentheses, verbose embeddings read much more clearly.
215  -Conditions now have a forced order when more than one is executed on a
216   single character. Previously ordering relied on pointers, which caused
217   results to vary by compiler. Ordering is now done using conditon action
218   declaration order. This fixes the failure of cond4.rl which occured with
219   g++ 4.1 and other compiler versions.
220  -In the port from flex to ragel, the name separator :: in Ragel code was
221   lost. Added it back.
222  -In the examples directory switched from rlcodegen to rlgen-cd. Silenced a
223   warning in statechart.rl.
224  -In the root makefile the distclean target was fixed. It was calling clean in
225   the subdirs. In docs, the clean target was not deleting the new manpages for
226   the rlgen-* programs. Fixed.
227  -Portability and other fixes from Josef Goettgens were applied.
228  -The @datadir@ and @mandir@ variables are made use of in doc/Makefile.in for
229   specifying where documentation should be installed. Patch from Marcus
230   Rueckert. 
231
232 Ragel 5.18 - Feb 13, 2007
233 =========================
234  -There is now a 100% correspondence between state id numbers in the
235   intermediate XML file, Graphviz dot files and generated code. This was
236   achieved by moving code which determines if the error state is necessary
237   into the frontend, and then assigning state numbers before writing out the
238   intermediate file.
239  -Backened class structure was reorganized to make it easier to add new code
240   generators without having to also modify the existing code generators.
241  -The C and D code generation executable was changed to rlgen-cd.
242  -The Java code generation was split out into it's own exectuable (rlgen-java)
243   to allow it to freely diverge from the C/D-based code generation.
244  -The graphviz dot file generation was also split out to it's own executable
245   (rlgen-dot).
246  -The Ruby code generation patch from Victor Hugo Borja was added. This is
247   highly experimental code and is not yet completely functional. It is in the
248   executable rlgen-ruby.
249  -The problem with large state machine machines in Java was fixed. This
250   problem was discovered by Colin Fleming, who also contributed a patch.
251   Rather than specify arrays as comma-separated lists of literals, array
252   initialization is now done in a static function. This is the approach used
253   by the Java compiler. Unlike the compiler Ragel is careful split large
254   initilization functions.
255  -The manual was expanded and reorganized somewhat.
256  -Eliminated per-example directories in examples/.
257  -Made some fixes to the pullscan.rl example.
258  -In the frontend CR characters are now treated as whitespace.
259  -Updated to the latest aapl. This completely eliminates the shallowCopy
260   function. With that, a definitive memory leak is fixed.
261  -Control codes with escape sequences are now printable characters (-p
262   option). Also, the space character is now printed as SP.
263  -Fixed the null dereference and consequential segfault which occurred when
264   trying to create empty machines with [] and // and /a[]b/. 
265  -Fixed the segfault which occured when a machine reference failed.
266  -Discontinuing ragel.spec. It is more appropriate for this to be written by
267   package maintenance developers.
268
269 Ragel 5.17 - Jan 28, 2007
270 =========================
271  -The scanners and parsers in both the frontend and backend programs were
272   completely rewritten using Ragel and Kelbt.
273  -The '%when condition' syntax was functioning like '$when condition'. This
274   was fixed.
275  -In the Vim syntax file fixes to the matching of embedding operators were
276   made. Also, improvements to the sync patterns were made.
277  -Added pullscan.rl to the examples directory. It is an example of doing
278   pull-based scanning. Also, xmlscan.rl in rlcodegen is a pull scanner.
279  -The introduction chapter of the manual was improved. The manually-drawn
280   figures for the examples were replaced with graphviz-drawn figures.
281  
282 Ragel 5.16 - Nov 20, 2006
283 =========================
284  -Policy change: the fhold and fexec directives did not function correctly in
285   scanner pattern actions. In this context manipulations of p may be lost or
286   made invalid. In the previous version of Ragel they were banned because of
287   this. Instead of banning these directives they have been fixed. The fexec
288   and fhold directives now manipulate tokend, which is now always used to
289   update p when the action terminates.
290
291 Ragel 5.15 - Oct 31, 2006
292 =========================
293  -A language independent test harness was introduced. Test cases can be
294   written using a custom mini-language in the embedded actions. This
295   mini-language is then translated to C, D and Java when generating the
296   language-specific test cases.
297  -Several existing tests have been ported to the language-independent format
298   and a number of new language-independent test cases have been added.
299  -The state-based embedding operators which access states that are not the
300   start state and are not final (the 'middle' states) have changed. They
301   were:
302     <@/    eof action into middle states
303     <@!    error action into middle states
304     <@^    local error action into middle states
305     <@~    to-state action into middle states
306     <@*    from-state action into middle states
307   They are now:
308     <>/    eof action into middle states
309     <>!    error action into middle states
310     <>^    local error action into middle states
311     <>~    to-state action into middle states
312     <>*    from-state action into middle states
313  -The verbose form of embeddings using the <- operator have been removed.
314   This syntax was difficult to remember.
315  -A new verbose form of state-based embedding operators have been added.
316   These are like the symbol versions, except they replace the symbols:
317     /  !  ^  ~  *
318   with literal keywords:
319     eof err lerr to from
320  -The following words have been promoted to keywords:
321     when eof err lerr to from
322  -The write statment now gets its own lexical scope in the scanner to ensure
323   that commands are passed through as is (not affected by keywords).
324  -Bug fix: in the code generation of fret in scanner actions the adjustment to
325   p that is needed in some cases (dependent on content of patterns) was not
326   happening.
327  -The fhold directive, which decrements p, cannot be permitted in the pattern
328   action of a scanner item because it will not behave consistently. At the end
329   of a pattern action p could be decremented, set to a new value or left
330   alone. This depends on the contents of the scanner's patterns. The user
331   cannot be expected to predict what will happen to p.
332  -Conditions in D code require a cast to the widec type when computing widec.
333  -Like Java, D code also needs if (true) branches for control flow in actions
334   in order to fool the unreachable code detector. This is now abstracted in
335   all code generators using the CTRL_FLOW() function.
336  -The NULL_ITEM value in java code should be -1. This is needed for
337   maintaining tokstart.
338
339 Ragel 5.14 - Oct 1, 2006
340 ========================
341  -Fixed the check for use of fcall in actions embedded within longest match
342   items. It was emitting an error if an item's longest-match action had an
343   fcall, which is allowed. This bug was introduced while fixing a segfault in
344   version 5.8.
345  -A new minimization option was added: MinimizeMostOps (-l). This option
346   minimizes at every operation except on chains of expressions and chains of
347   terms (eg, union and concat). On these chains it minimizes only at the last
348   operation. This makes test cases with many states compile faster, without
349   killing the performance on grammars like strings2.rl.
350  -The -l minimiziation option was made the default.
351  -Fixes to Java code: Use of the fc value did not work, now fixed. Static data
352   is now declared with the final keyword. Patch from Colin Fleming. Conditions
353   now work when generating Java code.
354  -The option -p was added to rlcodegen which causes printable characters to be
355   printed in GraphViz output. Patch from Colin Fleming.
356  -The "element" keyword no longer exists, removed from vim syntax file.
357   Updated keyword highlighting.
358  -The host language selection is now made in the frontend.
359  -Native host language types are now used when specifying the alphtype.
360   Previously all languages used the set defined by C, and these were mapped to
361   the appropriate type in the backend.
362
363 Ragel 5.13 - Sep 7, 2006
364 ========================
365  -Fixed a careless error which broke Java code generation.
366
367 Ragel 5.12 - Sep 7, 2006
368 ========================
369  -The -o flag did not work in combination with -V. This was fixed.
370  -The split code generation format uses only the required number of digits
371   when writing out the number in the file name of each part.
372  -The -T0, -F0 and -G0 codegens should write out the action list iteration
373   variables only when there are regular, to state or from state actions. The
374   code gens should not use anyActions().
375  -If two states have the same EOF actions, they are written out in the finish
376   routine as one case.
377  -The split and in-place goto formats would sometimes generate _out when it is
378   not needed. This was fixed.
379  -Improved the basic partitioning in the split code gen. The last partition
380   would sometimes be empty. This was fixed.
381  -Use of 'fcall *' was not causing top to be initialized. Fixed.
382  -Implemented a Java backend, specified with -J. Only the table-based format
383   is supported.
384  -Implemented range compression in the frontend. This has no effect on the
385   generated code, however it reduces the work of the backend and any programs
386   that read the intermediate format.
387
388 Ragel 5.11 - Aug 10, 2006
389 =========================
390  -Added a variable to the configure.in script which allows the building of
391   the parsers to be turned off (BUILD_PARSERS). Parser building is off by
392   default for released versions. 
393  -Removed configure tests for bison defines header file. Use --defines=file
394   instead. 
395  -Configure script doesn't test for bison, flex and gperf when building of the
396   parsers is turned off.
397  -Removed check for YYLTYPE structure from configure script. Since shipped
398   code will not build parsers by default, we don't need to be as accomodating
399   of other versions of bison. 
400  -Added a missing include that showed up with g++ 2.95.3.
401  -Failed configure test for Objective-C compiler is now silent.
402
403 Ragel 5.10 - Jul 31, 2006
404 =========================
405  -Moved the check for error state higher in the table-based processing loop.
406  -Replaced naive implementations of condition searching with proper ones. In
407   the table-based formats the searching is also table-based. In the directly
408   executed formats the searching is also directly executable.
409  -The minimization process was made aware of conditions.
410  -A problem with the condition implementation was fixed. Previously we were
411   taking pointers to transitions and then using them after a call to
412   outTransCopy, which was a bad idea because they may be changed by the call.
413  -Added test mailbox3.rl which is based on mailbox2.rl but includes conditions
414   for restricting header and message body lengths.  
415  -Eliminated the initial one-character backup of p just before resuming
416   execution.
417  -Added the -s option to the frontend for printing statistics. This currently
418   includes just the number of states. 
419  -Sped up the generation of the in-place goto-driven (-G2) code style.
420  -Implemented a split version of in-place goto-driven code style. This code
421   generation style is suitable for producing fast implementations of very
422   large machines. Partitioning is currently naive. In the future a
423   high-quality partitioning program will be employed. The flag for accessing
424   this feature is -Pn, where n is the number of partitions.
425  -Converted mailbox1.rl, strings2.rl and cppscan1.rl tests to support the
426   split code generation.
427  -Fixes and updates were made to the runtests script: added -c for compiling
428   only, changed the -me option to -e, and added support for testing the split
429   code style.
430  
431 Ragel 5.9 - Jul 19, 2006
432 ========================
433  -Fixed a bug in the include system which caused malformed output from the
434   frontend when the include was made from a multi-line machine spec and the
435   included file ended in a single line spec (or vice versa).
436  -Static data is now const.
437  -Actions which referenced states but were not embedded caused the frontend to
438   segfault, now fixed.
439  -Manual now built with pdflatex.
440  -The manual was reorganized and expanded. Chapter sequence is now:
441   Introduction, Constructing Machines, Embedding Actions, Controlling
442   Nondeterminism and Interfacing to the Host program.
443
444 Ragel 5.8 - Jun 17, 2006
445 ========================
446  -The internal representation of the alphabet type has been encapsulated
447   into a class and all operations on it have been defined as C++ operators.
448  -The condition implementation now supports range transitions. This allows
449   conditions to be embedded into arbitrary machines. Conditions are still
450   exprimental.
451  -More condition embedding operators were added
452    1. Isolate the start state and embed a condition into all transitions
453       leaving it:   
454       >when cond   OR   >?cond
455    2. Embed a condition into all transitions:
456       when cond    OR   $when cond   OR   $?cond
457    3. Embed a condition into pending out transitions:
458       %when cond   OR   %?cond
459  -Improvements were made to the determinization process to support pending out
460   conditions.
461  -The Vim sytax file was fixed so that :> doesn't cause the match of a label.
462  -The test suite was converted to a single-file format which uses less disk
463   space than the old directory-per-test format.
464  
465 Ragel 5.7 - May 14, 2006
466 ========================
467  -Conditions will not be embedded like actions because they involve a
468   manipulation of the state machine they are specified in. They have therefore
469   been taken out of the verbose action embedding form (using the <- compound
470   symbol). A new syntax for specifying conditions has been created: 
471   m = '\n' when {i==4};
472  -Fixed a bug which prevented state machine commands like fcurs, fcall, fret,
473   etc, from being accounted for in from-state actions and to-state actions.
474   This prevented some necessary support code from being generated.
475  -Implemented condition testing in remaining code generators.
476  -Configure script now checks for gperf, which is required for building.
477  -Added support for case-insensitive literal strings (in addition to regexes).
478   A case-insensitive string is made by appending an 'i' to the literal, as in
479   'cmd'i or "cmd"i.
480  -Fixed a bug which caused all or expressions inside of all regular
481   expressions to be case-insensitive. For example /[fo]o bar/ would make the
482   [fo] part case-insensitive even though no 'i' was given following the
483   regular expression.
484
485 Ragel 5.6 - Apr 1, 2006
486 =======================
487  -Added a left-guarded concatenation operator. This operator <: is equivalent
488   to ( expr1 $1 . expr2 >0 ). It is useful if you want to prefix a sequence
489   with a sequence of a subset of the characters it matches. For example, one
490   can consume leading whitespace before tokenizing a sequence of whitespace
491   separated words: ( ' '* <: ( ' '+ | [a-z]+ )** )
492  -Removed context embedding code, which has been dead since 5.0.
493   
494 Ragel 5.5 - Mar 28, 2006
495 ========================
496  -Implemented a case-insensitive option for regular expressions: /get/i.
497  -If no input file is given to the ragel program it reads from standard input.
498  -The label of the start state has been changed from START to IN to save on
499   required screen space.
500  -Bug fix: \0 was not working in literal strings, due to a change that reduced
501   memory usage by concatenating components of literal strings.  Token data
502   length is now passed from the scanner to the paser so that we do not need to
503   rely on null termination. 
504
505 Ragel 5.4 - Mar 12, 2006
506 ========================
507  -Eliminated the default transition from the frontend implementation. This
508   default transition was a space-saving optimization that at best could reduce
509   the number of allocated transitions by one half. Unfortunately it
510   complicated the implementation and this stood in the way of introducing
511   conditionals. The default transition may be reintroduced in the future.
512  -Added entry-guarded concatenation. This operator :>, is syntactic sugar
513   for expr1 $0 . expr >1. This operator terminates the matching of the first
514   machine when a first character of the second machine is matched. For
515   example in any* . ';' we never leave the any* machine. If we use any* :> ';'
516   then the any* machine is terminiated upon matching the semi-colon.
517  -Added finish-guarded concatenation. This operator :>>, is syntactic sugar
518   for expr1 $0 . expr @1. This operator is like entry guarded concatenation
519   except the first machine is terminated when the second machine enters a
520   final state. This is useful for delaying the guard until a full pattern is
521   matched. For example as in '/*' any* :>> '*/'.
522  -Added strong subtraction. Where regular subtraction removes from the first
523   machine any strings that are matched by the second machine, strong
524   subtraction removes any strings from the first that contain any strings of
525   the second as a substring. Strong subtraction is syntactic sugar for 
526   expr1 - ( any* expr2 any* ).
527  -Eliminated the use of priorities from the examples. Replaced with
528   subtraction, guarded concatenation and longest-match kleene star.
529  -Did some initial work on supporting conditional transitions. Far from
530   complete and very buggy. This code will only be active when conditionals are
531   used.
532
533 Ragel 5.3 - Jan 27, 2006
534 ========================
535  -Added missing semi-colons that cause the build to fail when using older
536   versions of Bison.
537  -Fix for D code: if the contents of an fexec is a single word, the generated
538   code will get interpreted as a C-style cast. Adding two brackets prevents
539   this. Can now turn eliminate the "access this.;" in cppscan5 that was used to
540   get around this problem.
541  -Improved some of the tag names in the intermediate format.
542  -Added unsigned long to the list of supported alphabet types.
543  -Added ids of actions and action lists to XML intermediate format. Makes it
544   more human readable.
545  -Updated to latest Aapl package.
546
547 Ragel 5.2 - Jan 6, 2006
548 ========================
549  -Ragel emits an error if the target of fentry, fcall, fgoto or fnext is inside
550   a longest match operator, or if an action embedding in a longest match
551   machine uses fcall. The fcall command can still be used in pattern actions.
552  -Made improvements to the clang, rlscan, awkemu and cppscan examples.
553  -Some fixes to generated label names: they should all be prefixed with _.
554  -A fix to the Vim syntax highlighting script was made
555  -Many fixes and updates to the documentation. All important features and
556   concepts are now documented. A second chapter describing Ragel's use
557   was added.
558  
559 Ragel 5.1 - Dec 22, 2005
560 ========================
561  -Fixes to the matching of section delimiters in Vim syntax file.
562  -If there is a longest match machine, the tokend var is now initialized by
563   write init. This is not necessary for correct functionality, however
564   prevents compiler warnings.
565  -The rlscan example was ported to the longest match operator and changed to
566   emit XML data.
567  -Fix to the error handling in the frontend: if there are errors in the lookup
568   of names at machine generation time then do not emit anything.
569  -If not compiling the full machine in the frontend (by using -M), avoid
570   errors and segfaults caused by names that are not part of the compiled
571   machine.
572  -Longest match bug fix: need to init tokstart when returing from fsm calls
573   that are inside longest match actions.
574  -In Graphviz drawing, the arrow into the start state is not a real
575   transition, do not draw to-state actions on the label.
576  -A bug fix to the handling of non-tag data within an XML tag was made.
577  -Backend exit value fixed: since the parser now accepts nothing so as to
578   avoid a redundant parse error when the frontend dies, we must force an
579   error. The backend should now be properly reporting errors.
580  -The longest match machine now has it's start state set final. An LM machine
581   is in a final state when it has not matched anything, when it has matched
582   and accepted a token and is ready for another, and when it has matched a
583   token but is waiting for some lookahead before determining what to do about
584   it (similar to kleene star).
585  -Element statement removed from some tests.
586  -Entry point names are propagated to the backend and used to label the entry
587   point arrows in Graphviz output.
588
589 Ragel 5.0 - Dec 17, 2005
590 ========================
591  (additional details in V5 release notes)
592  -Ragel has been split into two executables: A frontend which compiles
593   machines and emits them in an XML format, and a backend which generates code
594   or a Graphviz dot file from the XML input. The purpose of this split is to
595   allow Ragel to interface with other tools by means of the XML intermediate
596   format and to reduce complexity by strictly separating the previously
597   entangled phases. The intermediate format will provide a better platform
598   inspecting compiled machines and for extending Ragel to support other host
599   languages.
600  -The host language interface has been reduced significantly. Ragel no longer
601   expects the machine to be implemented as a structure or class and does not
602   generate functions corresponding to initialization, execution and EOF.
603   Instead, Ragel just generates the code of these components, allowing all of
604   them to be placed in a single function if desired. The user specifies a
605   machine in the usual manner, then indicates at which place in the program
606   text the state machine code is to be generated. This is done using the write
607   statement. It is possible to specify to Ragel how it should access the
608   variables it needs (such as the current state) using the access statement.
609  -The host language embedding delimiters have been changed. Single line
610   machines start with '%%' and end at newline. Multiline machines start with
611   '%%{' and end with '}%%'. The machine name is given with the machine
612   statement at the very beginning of the specification. This purpose of this
613   change is to make it easier separate Ragel code from the host language. This
614   will ease the addition of supported host languages.
615  -The structure and class parsing which was previously able to extract a
616   machine's name has been removed since this feature is dependent on the host
617   language and inhibits the move towards a more language-independent frontend.
618  -The init, element and interface statements have been made obsolete by the
619   new host language interface and have been removed.
620  -The fexec action statement has been changed to take only the new position to
621   move to. This statement is more useful for moving backwards and reparsing
622   input than for specifying a whole new buffer entirely and has been shifted
623   to this new use. Giving it only one argument also simplifies the parsing of
624   host code embedded in a Ragel specification. This will ease the addition of
625   supported host languages.
626  -Introduced the fbreak statement, which allows one to stop processing data
627   immediately. The machine ends up in the state that the current transition
628   was to go to. The current character is not changed.
629  -Introduced the noend option for writing the execute code. This inhibits
630   checking if we have reached pe. The machine will run until it goes into the
631   error state or fbreak is hit. This allows one to parse null-terminate
632   strings without first computing the length.
633  -The execute code now breaks out of the processing loop when it moves into
634   the error state. Previously it would run until pe was hit. Breaking out
635   makes the noend option useful when an error is encountered and allows
636   user code to determine where in the input the error occured. It also
637   eliminates needlessly iterating the input buffer.
638  -Introduced the noerror, nofinal and noprefix options for writing the machine
639   data. The first two inhibit the writing of the error state and the
640   first-final state should they not be needed. The noprefix eliminates the
641   prefixing of the data items with the machine name.
642  -Support for the D language has been added. This is specified in the backend
643   with the -D switch.
644  -Since the new host language interface has been reduced considerably, Ragel
645   no longer needs to distinguish between C-based languages. Support for C, C++
646   and Objective-C has been folded into one option in the backend: -C
647  -The code generator has been made independent of the languages that it
648   supports by pushing the language dependent apsects down into the lower
649   levels of the code generator.
650  -Many improvements to the longest match construction were made. It is no
651   longer considered experimental. A longest match machine must appear at the
652   top level of a machine instantiation. Since it does not generate a pure
653   state machine (it may need to backtrack), it cannot be used as an operand to
654   other operators.
655  -References to the current character and current state are now completely
656   banned in EOF actions.
657
658 Ragel 4.2 - Sep 16, 2005
659 ========================
660  (additional details in V4 release notes)
661  -Fixed a bug in the longest match operator. In some states it's possible that
662   we either match a token or match nothing at all. In these states we need to
663   consult the LmSwitch on error so it must be prepared to execute an error
664   handler. We therefore need to init act to this error value (which is zero).
665   We can compute if we need to do this and the code generator emits the
666   initialization only if necessary. 
667  -Changed the definition of the token end of longest match actions. It now
668   points to one past the last token. This makes computing the token length
669   easier because you don't have to add one. The longest match variables token
670   start, action identifier and token end are now properly initialized in
671   generated code. They don't need to be initialized in the user's code.
672  -Implemented to-state and from-state actions. These actions are executed on
673   transitions into the state (after the in transition's actions) and on
674   transitions out of the state (before the out transition's actions). See V4
675   release notes for more information.
676  -Since there are no longer any action embedding operators that embed both on
677   transitions and on EOF, any actions that exist in both places will be there
678   because the user has explicitly done so. Presuming this case is rare, and
679   with code duplication in the hands of the user, we therefore give the EOF
680   actions their own action switch in the finish() function. This is further
681   motivated by the fact that the best solution is to do the same for to-state
682   and from-state actions in the main loop.
683  -Longest match actions can now be specified using a named action. Since a
684   word following a longest match item conflicts with the concatenation of a
685   named machine, the => symbol must come immediately before a named action.
686  -The longest match operator permits action and machine definitions in the
687   middle of a longest match construction. These are parsed as if they came
688   before the machine definition they are contained in. Permitting action and
689   machine definitions in a longest match construction allows objects to be
690   defined closer to their use.
691  -The longest match operator can now handle longest match items with no
692   action, where previously Ragel segfaulted.
693  -Updated to Aapl post 2.12.
694  -Fixed a bug in epsilon transition name lookups. After doing a name lookup
695   the result was stored in the parse tree. This is wrong because if a machine
696   is used more than once, each time it may resolve to different targets,
697   however it will be stored in the same place. We now store name resolutions
698   in a separated data structure so that each walk of a parse tree uses the
699   name resolved during the corresponding walk in the name lookup pass.
700  -The operators used to embed context and actions into states have been
701   modified. The V4 release notes contain the full details.
702  -Added zlen builtin machine to represent the zero length machine. Eventually
703   the name "null" will be phased out in favour of zlen because it is unclear
704   whether null matches the zero length string or if it does not match any
705   string at all (as does the empty builtin).
706  -Added verbose versions of action, context and priority embedding. See the V4
707   release notes for the full details. A small example: 
708       machine <- all exec { foo(); } <- final eof act1
709  -Bugfix for machines with epsilon ops, but no join operations. I had 
710   wrongfully assumed that because epsilon ops can only increase connectivity,
711   that no states are ever merged and therefore a call to fillInStates() is not
712   necessary. In reality, epsilon transitions within one machine can induce the
713   merging of states. In the following, state 2 follows two paths on 'i':
714       main := 'h' -> i 'i h' i: 'i';
715  -Changed the license of the guide from a custom "do not propagate modified
716   versions of this document" license to the GPL.
717
718 Ragel 4.1 - Jun 26, 2005
719 ========================
720  (additional details in V4 release notes)
721  -A bug in include processing was fixed. Surrounding code in an include file
722   was being passed through to the output when it should be ignored. Includes
723   are only for including portions of another machine into he current. This
724   went unnoticed because all tested includes were wrapped in #ifndef ...
725   #endif directives and so did not affect the compilation of the file making
726   the include.
727  -Fixes were made to Vim syntax highlighting file.
728  -Duplicate actions are now removed from action lists.
729  -The character-level negation operator ^ was added. This operator produces a
730   machine that matches single characters that are not matched by the machine
731   it is applied to. This unary prefix operator has the same precedence level
732   as !.
733  -The use of + to specify the a positive literal number was discontinued.
734  -The parser now assigns the subtraction operator a higher precedence than
735   the negation of literal number.
736   
737 Ragel 4.0 - May 26, 2005
738 ========================
739  (additional details in V4 release notes)
740  -Operators now strictly embed into a machine either on a specific class of
741   characters or on EOF, but never both. This gives a cleaner association
742   between the operators and the physical state machine entitites they operate
743   on. This change is made up of several parts:
744   1. '%' operator embeds only into leaving characters.
745   2. All global and local error operators only embed on error character
746      transitions, their action will not be triggerend on EOF in non-final
747      states.
748   3. EOF action embedding operators have been added for all classes of states
749      to make up for functionality removed from other operators. These are 
750      >/ $/ @/ %/.
751   4. Start transition operator '>' no longer implicitly embeds into leaving
752      transtions when start state is final.
753  -Ragel now emits warnings about the improper use of statements and values in
754   action code that is embedded as an EOF action. Warnings are emitted for fpc,
755   fc, fexec, fbuf and fblen.
756  -Added a longest match construction operator |* machine opt-action; ... *|.
757   This is for repetition where an ability to revert to a shorter, previously
758   matched item is required. This is the same behaviour as flex and re2c. The
759   longest match operator is not a pure FSM construction, it introduces
760   transitions that implicitly hold the current character or reset execution to
761   a previous location in the input. Use of this operator requires the caller
762   of the machine to occasionally hold onto data after a call to the exectute
763   routine. Use of machines generated with this operator as the input to other
764   operators may have undefined results. See examples/cppscan for an example.
765   This is very experimental code.
766  -Action ids are only assigned to actions that are referenced in the final
767   constructed machine, preventing gaps in the action id sequence. Previously
768   an action id was assigned if the action was referenced during parsing.
769  -Machine specifications now begin with %% and are followed with an optional
770   name and either a single Ragel statement or a sequence of statements
771   enclosed in {}.
772  -Ragel no longer generates the FSM's structure or class. It is up to the user
773   to declare the structure and to give it a variable named curs of type
774   integer. If the machine uses the call stack the user must also declare a
775   array of integers named stack and an integer variable named top.
776  -In the case of Objective-C, Ragel no longer generates the interface or
777   implementation directives, allowing the user to declare additional methods.
778  -If a machine specification does not have a name then Ragel tries to find a
779   name for it by first checking if the specification is inside a struct, class
780   or interface. If it is not then it uses the name of the previous machine
781   specification. If still no name is found then this is an error.
782  -Fsm specifications now persist in memory and statements accumulate.
783  -Ragel now has an include statement for including the statements of a machine
784   spec in another file (perhaps because it is the corresponding header file).
785   The include statement can also be used to draw in the statements of another
786   fsm spec in the current file.
787  -The fstack statement is now obsolete and has been removed.
788  -A new statement, simply 'interface;', indicates that ragel should generate
789   the machine's interface. If Ragel sees the main machine it generates the
790   code sections of the machine. Previously, the header portion was generated
791   if the (now removed) struct statement was found and code was generated if
792   any machine definition was found.
793  -Fixed a bug in the resolution of fsm name references in actions. The name
794   resolution code did not recurse into inline code items with children
795   (fgoto*, fcall*, fnext*, and fexec), causing a segfault at code generation
796   time.
797  -Cleaned up the code generators. FsmCodeGen was made into a virtual base
798   class allowing for the language/output-style specific classes to inherit
799   both a language specific and style-specific base class while retaining only
800   one copy of FsmCodeGen. Language specific output can now be moved into the
801   language specific code generators, requiring less duplication of code in the
802   language/output-style specific leaf classes.
803  -Fixed bugs in fcall* implementation of IpgGoto code generation.
804  -If the element type has not been defined Ragel now uses a constant version
805   of the alphtype, not the exact alphtype. In most cases the data pointer of
806   the execute routine should be const. A non-const element type can still be
807   defined with the element statement.
808  -The fc special value now uses getkey for retrieving the current char rather
809   than *_p, which is wrong if the element type is a structure.
810  -User guide converted to TeX and updated for new 4.0 syntax and semantics.
811
812 Ragel 3.7 - Oct 31, 2004
813 ========================
814  -Bug fix: unreferenced machine instantiations causing segfault due to name
815   tree and parse tree walk becomming out of syncronization.
816  -Rewrote representation of inline code blocks using a tree data structure.
817   This allows special keywords such as fbuf to be used as the operatands of
818   other fsm commands.
819  -Documentation updates.
820  -When deciding whether or not to generate machine instantiations, search the
821   entire name tree beneath the instantiation for references, not just the
822   root.
823  -Removed stray ';' in keller2.rl
824  -Added fexec for restarting the machine with new buffer data (state stays the
825   same), fbuf for retrieving the the start of the buf, and fblen for
826   retrieving the orig buffer length.
827  -Implemented test/cppscan2 using fexec. This allows token emitting and restart
828   to stay inside the execute routine, instead of leaving and re-entering on
829   every token.
830  -Changed examples/cppscan to use fexec and thereby go much faster.
831  -Implemented flex and re2c versions of examples/cppscan. Ragel version
832   goes faster than flex version but not as fast as re2c version.
833  -Merged in Objective-C patch from Erich Ocean.
834  -Turned off syncing with stdio in C++ tests to make them go faster.
835  -Renamed C++ code generaion classes with the Cpp Prefix instead of CC to make
836   them easier to read.
837  -In the finish function emit fbuf as 0 cast to a pointer to the element type
838   so it's type is not interpreted as an integer.
839  -The number -128 underflows char alphabets on some architectures. Removed
840   uses of it in tests.
841  -Disabled the keller2 test because it causes problems on many architectures
842   due to its large size and compilation requirements.
843
844 Ragel 3.6 - Jul 10, 2004
845 ========================
846  -Many documentation updates.
847  -When resolving names, return a set of values so that a reference in an
848   action block that is embedded more than once won't report distinct entry
849   points that are actually the same.
850  -Implemented flat tables. Stores a linear array of indicies into the
851   transition array and only a low and high key value. Faster than binary
852   searching for keys but not usable for large alphabets.
853  -Fixed bug in deleting of transitions leftover from converstion from bst to
854   list implementation of transitions. Other code cleanup.
855  -In table based output calculate the cost of using an index. Don't use if
856   cheaper. 
857  -Changed fstate() value available in init and action code to to fentry() to
858   reflect the fact that the values returned are intended to be used as targets
859   in fgoto, fnext and fcall statements. The returned state is not a unique
860   state representing the label. There can be any number of states representing
861   a label.
862  -Added keller2 test, C++ scanning tests and C++ scanning example.
863  -In table based output split up transitions into targets and actions. This
864   allows actions to be omitted.
865  -Broke the components of the state array into separate arrays. Requires
866   adding some fields where they could previously be omitted, however allows
867   finer grained control over the sizes of items and an overal size reduction.
868   Also means that state numbers are not an offset into the state array but
869   instead a sequence of numbers, meaning the context array does not have any
870   wasted bits.
871  -Action lists and transition also have their types chosen to be the smallest
872   possible for accomodating the contained values.
873  -Changed curs state stored in fsm struct from _cs to curs. Keep fsm->curs ==
874   -1 while in machine. Added tests curs1 and curs2.
875  -Implemented the notion of context. Context can be embedded in states using
876   >:, $:, @: and %: operators. These embed a named context into start states,
877   all states, non-start/non-final and final states. If the context is declared
878   using a context statment
879     context name;
880   then the context can be quered for any state using fsm_name_ctx_name(state)
881   in C code and fsm_name::ctx_name(state) in C++ code. This feature makes it
882   possible to determine what "part" of the machine is currently active.
883  -Fixed crash on machine generation of graphs with no final state. If there
884   is no reference to a final state in a join operation, don't generate one. 
885  -Updated Vim sytax: added labels to inline code, added various C++ keywords.
886   Don't highlight name separations as labels. Added switch labels, improved
887   alphtype, element and getkey.
888  -Fixed line info in error reporting of bad epsilon trans. 
889  -Fixed fstate() for tab code gen.
890  -Removed references to malloc.h.
891
892 Ragel 3.5 - May 29, 2004
893 ========================
894  -When parse errors occur, the partially generated output file is deleted and
895   an non-zero exit status is returned.
896  -Updated Vim syntax file.
897  -Implemented the setting of the element type that is passed to the execute
898   routine as well as method for specifying how ragel should retrive the key
899   from the element type. This lets ragel process arbitrary structures inside
900   of which is the key that is parsed.
901       element struct Element;
902       getkey fpc->character;
903  -The current state is now implemented with an int across all machines. This
904   simplifies working with current state variables. For example this allows a
905   call stack to be implemented in user code.
906  -Implemented a method for retrieving the current state, the target state, and
907   any named states. 
908       fcurs           -retrieve the current state
909       ftargs          -retrieve the target state
910       fstate(name)    -retrieve a named state.
911  -Implemented a mechanism for jumping to and calling to a state stored in a
912   variable.
913       fgoto *<expr>;  -goto the state returned by the C/C++ expression.
914       fcall *<expr>;  -call the state returned by the C/C++ expression.
915  -Implemented a mechanism for specifying the next state without immediately
916   transfering control there (any code following statement is executed).
917       fnext label;    -set the state pointed to by label as the next state.
918       fnext *<expr>;  -set the state returned by the C/C++ expression as the
919                        next.
920  -Action references are determined from the final machine instead of during
921   the parse tree walk. Some actions can be referenced in the parse tree but not
922   show up in the final machine. Machine analysis is now done based on this new
923   computation.
924  -Named state lookup now employs a breadth-first search in the lookup and
925   allows the user to fully qualify names, making it possible to specify
926   jumps/calls into parts of the machine deep in the name hierarchy. Each part
927   of name (separated by ::) employs a breadth first search from it's starting
928   point.
929  -Name references now must always refer to a single state. Since references to
930   multiple states is not normally intended, it no longer happens
931   automatically. This frees the programmer from thinking about whether or not
932   a state reference is unique. It also avoids the added complexity of
933   determining when to merge the targets of multiple references. The effect of
934   references to multiple states can be explicitly created using the join
935   operator and epsilon transitions.
936  -M option was split into -S and -M. -S specifies the machine spec to generate
937   for graphviz output and dumping. -M specifies the machine definition or
938   instantiation.
939  -Machine function parameters are now prefixed with and underscore to
940   avoid the hiding of class members.
941
942 Ragel 3.4 - May 8, 2004
943 =======================
944  -Added the longest match kleene star operator **, which is synonymous 
945   with ( ( <machine> ) $0 %1 ) *.
946  -Epsilon operators distinguish between leaving transitions (going to an
947   another expression in a comma separated list) and non-leaving transitions.
948   Leaving actions and priorities are appropriately transferred.
949  -Relative priority of following ops changed to:
950       1. Action/Priority 
951       2. Epsilon 
952       3. Label
953   If label is done first then the isolation of the start state in > operators
954   will cause the label to point to the old start state that doesn't have the
955   new action/priority.
956  -Merged >! and >~, @! and @~, %! and %~, and $! and $~ operators to have one
957   set of global error action operators (>!, @!, %! and $!) that are invoked on
958   error by unexpected characters as well as by unexepected EOF.
959  -Added the fpc keyword for use in action code. This is a pointer to the
960   current character. *fpc == fc. If an action is invoked on EOF then fpc == 0.
961  -Added >^, @^, %^, and $^ local error operators. Global error operators (>!,
962   @!, $!, and %!) cause actions to be invoked if the final machine fails.
963   Local error actions cause actions to be invoked if if the current machine
964   fails.
965  -Changed error operators to mean embed global/local error actions in:
966      >! and !^  -the start state.
967      @! and @^  -states that are not the start state and are not final.
968      %! and %^  -final states.
969      $! and $^  -all states.
970  -Added >@! which is synonymous >! then @!
971  -Added >@^ which is synonymous >^ then @^
972  -Added @%! which is synonymous @! then %!
973  -Added @%^ which is synonymous >^ then @^
974  -FsmGraph representation of transition lists was changed from a mapping of
975   alphabet key -> transition objects using a BST to simply a list of
976   transition objects. Since the transitions are no longer divided by
977   single/range, the fast finding of transition objects by key is no longer
978   required functionality and can be eliminated. This new implementation uses
979   the same amount of memory however causes less allocations. It also make more
980   sense for supporting error transitions with actions. Previously an error
981   transition was represented by a null value in the BST.
982  -Regular expression ranges are checked to ensure that lower <= upper.
983  -Added printf-like example.
984  -Added atoi2, erract2, and gotcallret to the test suite.
985  -Improved build test to support make -jN and simplified the compiling and
986   running of tests.
987
988 Ragel 3.3 - Mar 7, 2004
989 =======================
990  -Portability bug fixes were made. Minimum and maximum integer values are
991   now taken from the system. An alignment problem on 64bit systems
992   was fixed.
993
994 Ragel 3.2 - Feb 28, 2004
995 ========================
996  -Added a Vim syntax file.
997  -Eliminated length var from generated execute code in favour of an end
998   pointer. Using length requires two variables be read and written. Using an
999   end pointer requires one variable read and written and one read. Results in
1000   more optimizable code.
1001  -Minimization is now on by default.
1002  -States are ordered in output by depth first search.
1003  -Bug in minimization fixed. States were not being distinguished based on
1004   error actions. 
1005  -Added null and empty builtin machines.
1006  -Added EOF error action operators. These are >~, >@, $~, and %~. EOF error
1007   operators embed actions to take if the EOF is seen and interpreted as an
1008   error. The operators correspond to the following states:
1009     -the start state
1010     -any state with a transition to a final state
1011     -any state with a transiion out
1012     -a final state
1013  -Fixed bug in generation of unreference machine vars using -M. Unreferenced
1014   vars don't have a name tree built underneath when starting from
1015   instantiations. Need to instead build the name tree starting at the var.
1016  -Calls, returns, holds and references to fc in out action code are now
1017   handled for ipgoto output.
1018  -Only actions referenced by an instantiated machine expression are put into
1019   the action index and written out.
1020  -Added rlscan, an example that lexes Ragel input.
1021
1022 Ragel 3.1 - Feb 18, 2004
1023 ========================
1024  -Duplicates in OR literals are removed and no longer cause an assertion
1025   failure.
1026  -Duplicate entry points used in goto and call statements are made into
1027   deterministic entry points.
1028  -Base FsmGraph code moved from aapl into ragel, as an increasing amount
1029   of specialization is required. Too much time was spent attempting to
1030   keep it as a general purpose template.
1031  -FsmGraph code de-templatized and heirarchy squashed to a single class.
1032  -Single transitions taken out of FsmGraph code. In the machine construction
1033   stage, transitions are now implemented only with ranges and default
1034   transtions. This reduces memory consumption, simplifies code and prevents
1035   covered transitions. However it requires the automated selection of single
1036   transitions to keep goto-driven code lean.
1037  -Machine reduction completely rewritten to be in-place. As duplicate
1038   transitions and actions are found and the machine is converted to a format
1039   suitable for writing as C code or as GraphViz input, the memory allocated
1040   for states and transitions is reused, instead of newly allocated.
1041  -New reduction code consolodates ranges, selects a default transition, and
1042   selects single transitions with the goal of joining ranges that are split by
1043   any number of single characters.
1044  -Line directive changed from "# <num> <file>" to the more common format
1045   "#line <num> <file>".
1046  -Operator :! changed to @!. This should have happened in last release.
1047  -Added params example.
1048
1049 Ragel 3.0 - Jan 22, 2004
1050 ========================
1051  -Ragel now parses the contents of struct statements and action code. 
1052  -The keyword fc replaces the use of *p to reference the current character in
1053   action code.
1054  -Machine instantiations other than main are allowed.
1055  -Call, jump and return statements are now available in action code. This
1056   facility makes it possible to jump to an error handling machine, call a
1057   sub-machine for parsing a field or to follow paths through a machine as
1058   determined by arbitrary C code.
1059  -Added labels to the language. Labels can be used anywhere in a machine
1060   expression to define an entry point. Also references to machine definitions
1061   cause the implicit creation of a label.
1062  -Added epsilon transitions to the language. Epsilon operators may reference
1063   labels in the current name scope resolved when join operators are evaluated
1064   and at the root of the expression tree of machine assignment/instantiation.
1065  -Added the comma operator, which joins machines together without drawing any
1066   transitions between them. This operator is useful in combination with
1067   labels, the epsilon operator and user code transitions for defining machines
1068   using the named state and transition list paradigm. It is also useful for
1069   invoking transitions based on some analysis of the input or on the
1070   environment.
1071  -Added >!, :!, $!, %! operators for specifying actions to take should the
1072   machine fail. These operators embed actions to execute if the machine
1073   fails in
1074     -the start state
1075     -any state with a transition to a final state
1076     -any state with a transiion out
1077     -a final state
1078   The general rule is that if an action embedding operator embeds an action
1079   into a set of transitions T, then the error-counterpart with a !  embeds an
1080   action into the error transition taken when any transition T is a candidate,
1081   but does not match the input.
1082  -The finishing augmentation operator ':' has been changed to '@'. This
1083   frees the ':' symbol for machine labels and avoids hacks to the parser to
1084   allow the use of ':' for both labels and finishing augmentations. The best
1085   hack required that label names be distinct from machine definition names as
1086   in main := word : word; This restriction is not good because labels are
1087   local to the machine that they are used in whereas machine names are global
1088   entities. Label name choices should not be restricted by the set of names
1089   that are in use for machines.
1090  -Named priority syntax now requires parenthesis surrounding the name and
1091   value pair. This avoids grammar ambiguities now that the ',' operator has
1092   been introduced and makes it more clear that the name and value are an
1093   asscociated pair.
1094  -Backslashes are escaped in line directive paths.
1095
1096 Ragel 2.2 - Oct 6, 2003
1097 =======================
1098  -Added {n}, {,n}, {n,} {n,m} repetition operators.
1099     <expr> {n}    -- exactly n repetitions
1100     <expr> {,n}   -- zero to n repetitions
1101     <expr> {n,}   -- n or more repetitions
1102     <expr> {n,m}  -- n to m repetitions
1103  -Bug in binary search table in Aapl fixed. Fixes crashing on machines that
1104   add to action tables that are implicitly shared among transitions.
1105  -Tests using obsolete minimization algorithms are no longer built and run by
1106   default.
1107  -Added atoi and concurrent from examples to the test suite.
1108
1109 Ragel 2.1 - Sep 22, 2003
1110 ========================
1111  -Bug in priority comparison code fixed. Segfaulted on some input with many
1112   embedded priorities.
1113  -Added two new examples.
1114
1115 Ragel 2.0 - Sep 7, 2003
1116 =======================
1117  -Optional (?), One or More (+) and Kleene Star (*) operators changed from
1118   prefix to postfix. Rationale is that postfix version is far more common in
1119   regular expression implementations and will be more readily understood.
1120  -All priority values attached to transitions are now accompanied by a name.
1121   Transitions no longer have default priority values of zero assigned
1122   to them. Only transitions that have different priority values assigned
1123   to the same name influence the NFA-DFA conversion. This scheme reduces
1124   side-effects of priorities.
1125  -Removed the %! statement for unsetting pending out priorities. With
1126   named priorities, it is not necessary to clear the priorities of a
1127   machine with $0 %! because non-colliding names can be used to avoid
1128   side-effects.
1129  -Removed the clear keyword, which was for removing actions from a machine.
1130   Not required functionality and it is non-intuitive to have a language
1131   feature that undoes previous definitions.
1132  -Removed the ^ modifier to repetition and concatenation operators. This
1133   undocumented feature prevented out transitions and out priorities from being
1134   transfered from final states to transitions leaving machines. Not required
1135   functionality and complicates the language unnecessarily.
1136  -Keyword 'func' changed to 'action' as a part of the phasing out of the term
1137   'function' in favour of 'action'. Rationale is that the term 'function'
1138   implies that the code is called like a C function, which is not necessarily
1139   the case. The term 'action' is far more common in state machine compiler
1140   implementations.
1141  -Added the instantiation statement, which looks like a standard variable
1142   assignment except := is used instead of =. Instantiations go into the
1143   same graph dictionary as definitions. In the the future, instantiations
1144   will be used as the target for gotos and calls in action code.
1145  -The main graph should now be explicitly instantiated. If it is not,
1146   a warning is issued.
1147  -Or literal basic machines ([] outside of regular expressions) now support
1148   negation and ranges. 
1149  -C and C++ interfaces lowercased. In the C interface an underscore now
1150   separates the fsm machine and the function name. Rationale is that lowercased
1151   library and generated routines are more common.
1152     C output:
1153       int fsm_init( struct clang *fsm );
1154       int fsm_execute( struct clang *fsm, char *data, int dlen );
1155       int fsm_finish( struct clang *fsm );
1156     C++ output:
1157       int fsm::init( );
1158       int fsm::execute( char *data, int dlen );
1159       int fsm::finish( );
1160  -Init, execute and finish all return -1 if the machine is in the error state
1161   and can never accept, 0 if the machine is in a non-accepting state that has a
1162   path to a final state and 1 if the machine is in an accepting state.
1163  -Accept routine eliminated. Determining whether or not the machine accepts is
1164   done by examining the return value of the finish routine.
1165  -In C output, fsm structure is no longer a typedef, so referencing requires
1166   the struct keyword. This is to stay in line with C language conventions.
1167  -In C++ output, constructor is no longer written by ragel. As a consequence,
1168   init routine is not called automatically. Allows constructor to be supplied
1169   by user as well as the return value of init to be examined without calling it
1170   twice.
1171  -Static start state and private structures are taken out of C++ classes.
1172
1173 Ragel 1.5.4 - Jul 14, 2003
1174 ==========================
1175  -Workaround for building with bison 1.875, which produces an
1176   optimization that doesn't build with newer version gcc.
1177
1178 Ragel 1.5.3 - Jul 10, 2003
1179 ==========================
1180  -Fixed building with versions of flex that recognize YY_NO_UNPUT.
1181  -Fixed version numbers in ragel.spec file.
1182
1183 Ragel 1.5.2 - Jul 7, 2003
1184 =========================
1185  -Transition actions and out actions displayed in the graphviz output.
1186  -Transitions on negative numbers handled in graphviz output.
1187  -Warning generated when using bison 1.875 now squashed.
1188  
1189 Ragel 1.5.1 - Jun 21, 2003
1190 ==========================
1191  -Bugs fixed: Don't delete the output objects when writing to standard out.
1192   Copy mem into parser buffer with memcpy, not strcpy. Fixes buffer mem errror.
1193  -Fixes for compiling with Sun WorkShop 6 compilers.
1194
1195 Ragel 1.5.0 - Jun 10, 2003
1196 ==========================
1197  -Line directives written to the output so that errors in the action code
1198   are properly reported in the ragel input file.
1199  -Simple graphviz dot file output format is supported. Shows states and
1200   transitions. Does not yet show actions.
1201  -Options -p and -f dropped in favour of -d output format.
1202  -Added option -M for specifying the machine to dump with -d or the graph to
1203   generate with -V.
1204  -Error recovery implemented.
1205  -Proper line and column number tracking implemented in the scanner.
1206  -All action/function code is now embedded in the main Execute routine. Avoids
1207   duplication of action code in the Finish routine and the need to call
1208   ExecFuncs which resulted in huge code bloat. Will also allow actions to
1209   modify cs when fsm goto, call and return is supported in action code.
1210  -Fsm spec can have no statements, nothing will be generated.
1211  -Bug fix: Don't accept ] as the opening of a .-. range a reg exp.
1212  -Regular expression or set ranges (ie /[0-9]/) are now handled by the parser
1213   and consequently must be well-formed. The following now generates a parser
1214   error: /[+-]/ and must be rewritten as /[+\-]/. Also fixes a bug whereby ]
1215   might be accepted as the opening of a .-. range causing /[0-9]-[0-9]/ to
1216   parse incorrectly.
1217  -\v, \f, and \r are now treated as whitespace in an fsm spec.
1218
1219 Ragel 1.4.1 - Nov 19, 2002
1220 ==========================
1221  -Compile fixes. The last release (integer alphabets) was so exciting
1222   that usual portability checks got bypassed.
1223
1224 Ragel 1.4.0 - Nov 19, 2002
1225 ==========================
1226  -Arbitrary integer alphabets are now fully supported! A new language
1227   construct:
1228   'alphtype <type>' added for specifying the type of the alphabet. Default
1229   is 'char'. Possible alphabet types are:
1230        char, unsigned char, short, unsigned short, int, unsigned int
1231  -Literal machines specified in decimal format can now be negative when the
1232   alphabet is a signed type.
1233  -Literal machines (strings, decimal and hex) have their values checked for
1234   overflow/underflow against the size of the alphabet type.
1235  -Table driven and goto driven output redesigned to support ranges. Table
1236   driven uses a binary search for locating single characters and ranges. Goto
1237   driven uses a switch statement for single characters and nested if blocks for
1238   ranges.
1239  -Switch driven output removed due to a lack of consistent advantages. Most of
1240   the time the switch driven FSM is of no use because the goto FSM makes
1241   smaller and faster code. Under certain circumstances it can produce smaller
1242   code than a goto driven fsm and be almost as fast, but some sporadic case
1243   does not warrant maintaining it.
1244  -Many warnings changed to errors.
1245  -Added option -p for printing the final fsm before minimization. This lets
1246   priorities be seen. Priorties are all reset to 0 before minimization. The
1247   exiting option -f prints the final fsm after minimization.
1248  -Fixed a bug in the clang test and example that resulted in redundant actions
1249   being executed.
1250
1251 Ragel 1.3.4 - Nov 6, 2002
1252 =========================
1253  -Fixes to Chapter 1 of the guide.
1254  -Brought back the examples and made them current.
1255  -MSVC is no longer supported for compiling windows binaries because its
1256   support for the C++ standard is frustratingly inadequate, it will cost money
1257   to upgrade if it ever gets better, and MinGW is a much better alternative.
1258  -The build system now supports the --host= option for building ragel
1259   for another system (used for cross compiling a windows binary with MinGW).
1260  -Various design changes and fixes towards the goal of arbitrary integer
1261   alphabets and the handling of larger state machines were made.
1262  -The new shared vector class is now used for action lists in transitions and
1263   states to reduce memory allocations.
1264  -An avl tree is now used for the reduction of transitions and functions of an
1265   fsm graph before making the final machine. The tree allows better scalability
1266   and performance by not requiring consecutively larger heap allocations.
1267  -Final stages in the separation of fsm graph code from action embedding and
1268   priority assignment is complete. Makes the base graph leaner and easier to reuse
1269   in other projects (like Keller).
1270
1271 Ragel 1.3.3 - Oct 22, 2002
1272 ==========================
1273  -More diagrams were added to section 1.7.1 of the user guide.
1274  -FSM Graph code was reworked to spearate the regex/nfa/minimizaion graph
1275   algorithms from the manipulation of state and transition properties.
1276  -An rpm spec file from Cris Bailiff was added. This allows an rpm for ragel
1277   to be built with the command 'rpm -ta ragel-x.x.x.tar.gz'
1278  -Fixes to the build system and corresponding doc updates in the README.
1279  -Removed autil and included the one needed source file directly in the top
1280   level ragel directory.
1281  -Fixed a bug that nullified the 20 times speedup in large compilations
1282   claimed by the last version.
1283  -Removed awk from the doc build (it was added with the last release -- though
1284   not mentioned in the changelog).
1285  -Install of man page was moved to the doc dir. The install also installs the
1286   user guide to $(PREFIX)/share/doc/ragel/
1287
1288 Ragel 1.3.2 - Oct 16, 2002
1289 ==========================
1290  -Added option -v (or --version) to show version information.
1291  -The subtract operator no longer removes transition data from the machine
1292   being subtracted. This is left up to the user for the purpose of making it
1293   possible to transfer transitions using subtract and also for speeding up the
1294   subtract routine. Note that it is possible to explicitly clear transition
1295   data before a doing a subtract.
1296  -Rather severe typo bug fixed. Bug was related to transitions with higher
1297   priorities taking precedence. A wrong ptr was being returned. It appears to
1298   have worked most of the time becuase the old ptr was deleted and the new one
1299   allocated immediatly after so the old ptr often pointed to the same space.
1300   Just luck though.
1301  -Bug in the removing of dead end paths was fixed. If the start state
1302   has in transitions then those paths were not followed when finding states to
1303   keep. Would result in non-dead end states being removed from the graph.
1304  -In lists and in ranges are no longer maintained as a bst with the key as the
1305   alphabet character and the value as a list of transitions coming in on that
1306   char. There is one list for each of inList, inRange and inDefault. Now that
1307   the required functionality of the graph is well known it is safe to remove
1308   these lists to gain in speed and footprint. They shouldn't be needed.
1309  -IsolateStartState() runs on modification of start data only if the start
1310   state is not already isolated, which is now possible with the new in list
1311   representation.
1312  -Concat, Or and Star operators now use an approximation to
1313   removeUnreachableStates that does not require a traversal of the entire
1314   graph. This combined with an 'on-the-fly' management of final bits and final
1315   state status results is a dramatic speed increase when compiling machines
1316   that use those operators heavily. The strings2 test goes 20 times faster.
1317  -Before the final minimization, after all fsm operations are complete,
1318   priority data is reset which enables better minimization in cases where
1319   priorities would otherwise separate similar states.
1320  
1321 Ragel 1.3.1 - Oct 2, 2002
1322 =========================
1323  -Range transitions are now used to implement machines made with /[a-z]/ and
1324   the .. operator as well as most of the builtin machines. The ranges are not
1325   yet reflected in the output code, they are expanded as if they came from the
1326   regular single transitions. This is one step closer to arbitrary integer
1327   output.
1328  -The builtin machine 'any' was added. It is equiv to the builtin extend,
1329   matching any characters.
1330  -The builtin machine 'cntrl' now includes newline.
1331  -The builtin machine 'space' now includes newline.
1332  -The builtin machine 'ascii' is now the range 0-127, not all characters.
1333  -A man page was written.
1334  -A proper user guide was started. Chapter 1: Specifying Ragel Programs
1335   was written. It even has some diagrams :)
1336
1337 Ragel 1.3.0 - Sep 4, 2002
1338 =========================
1339  -NULL keyword no longer used in table output.
1340  -Though not yet in use, underlying graph structure changed to support range
1341   transitions. As a result, most of the code that walks transition lists is now
1342   implemented with an iterator that hides the complexity of the transition
1343   lists and ranges. Range transitions will be used to implement /[a-z]/ style
1344   machines and machines made with the .. operator. Previously a single
1345   transition would be used for each char in the range, which is very costly.
1346   Ranges eliminate much of the space complexity and allow for the .. operator
1347   to be used with very large (integer) alphabets.
1348  -New minimization similar to Hopcroft's alg. It does not require n^2 space and
1349   runs close to O(n*log(n)) (an exact analysis of the alg is very hard). It is
1350   much better than the stable and approx minimization and obsoletes them both.
1351   An exact implementation of Hopcroft's alg is desirable but not possible
1352   because the ragel implementation does not assume a finite alphabet, which
1353   Hopcroft's requires. Ragel will support arbitrary integer alphabets which
1354   must be treated as an infinite set for implementation considerations.
1355  -New option -m using above described minimization to replace all previous
1356   minimization options. Old options sill work but are obsolete and not
1357   advertised with -h.
1358  -Bug fixed in goto style output. The error exit set the current state to 0,
1359   which is actually a valid state. If the machine was entered again it would go
1360   into the first state, very wrong. If the first state happened to be final then
1361   an immediate finish would accept when in fact it should fail.
1362  -Slightly better fsm minimization now capable due to clearing of the
1363   transition ordering numbers just prior to minimization. 
1364  
1365 Ragel 1.2.2 - May 25, 2002
1366 ==========================
1367  -Configuration option --prefix now works when installing.
1368  -cc file extension changed to cpp for better portability.
1369  -Unlink of output file upon error no longer happens, removes dependency on
1370   unlink system command.
1371  -All multiline strings removed: not standard c++.
1372  -Awk build dependency removed.
1373  -MSVC 6.0 added to the list of supported compilers (with some tweaking of
1374   bison and flex output).
1375
1376 Ragel 1.2.1 - May 13, 2002
1377 ==========================
1378  -Automatic dependencies were fixed, they were not working correctly.
1379  -Updated AUTHORS file to reflect contributors.
1380  -Code is more C++ standards compliant: compiles with g++ 3.0
1381  -Fixed bugs that only showed up in g++ 3.0
1382  -Latest (unreleased) Aapl.
1383  -Configuration script bails out if bison++ is installed. Ragel will not
1384   compile with bison++ because it is coded in c++ and bison++ automatically
1385   generates a c++ parser. Ragel uses a c-style bison parser.
1386
1387 Ragel 1.2.0 - May 3, 2002
1388 =========================
1389  -Underlying graph structure now supports default transitions. The result is
1390   that a transition does not need to be made for each char of the alphabet
1391   when making 'extend' or '/./' machines. Ragel compiles machines that
1392   use the aforementioned primitives WAY faster.
1393  -The ugly hacks needed to pick default transitions now go away due to
1394   the graph supporting default transitions directly.
1395  -If -e is given, but minimization is not turned on, print a warning.
1396  -Makefiles use automatic dependencies.
1397
1398 Ragel 1.1.0 - Apr 15, 2002
1399 ==========================
1400  -Added goto fsm: much faster than any other fsm style.
1401  -Default operator (if two machines are side by side with no operator
1402   between them) is concatenation. First showed up in 1.0.4.
1403  -The fsm machine no longer auotmatically builds the flat table for
1404   transition indicies. Instead it keeps the key,ptr pair. In tabcodegen
1405   the flat table is produced. This way very large alphabets with sparse
1406   transitions will not consume large amounts of mem. This is also in prep
1407   for fsm graph getting a default transition.
1408  -Generated code contains a statement explicitly stating that ragel fsms
1409   are NOT covered by the GPL. Technically, Ragel copies part of itself
1410   to the output to make the generic fsm execution routine (for table driven
1411   fsms only) and so the output could be considered under the GPL. But this
1412   code is very trivial and could easlily be rewritten. The actual fsm data
1413   is subject to the copyright of the source. To promote the use of Ragel,
1414   a special exception is made for the part of the output copied from Ragel:
1415   it may be used without restriction.
1416  -Much more elegant code generation scheme is employed. Code generation
1417   class members need only put the 'codegen' keyword after their 'void' type
1418   in order to be automatically registerd to handle macros of the same name.
1419   An awk script recognises this keyword and generates an appropriate driver.
1420  -Ragel gets a test suite.
1421  -Postfunc and prefunc go away because they are not supported by non
1422   loop-driven fsms (goto, switch) and present duplicate functionality. 
1423   Universal funcs can be implemented by using $ operator.
1424  -Automatic dependencies used in build system, no more make depend target.
1425  -Code generation section in docs.
1426  -Uses the latests aapl.
1427
1428 Ragel 1.0.5 - Mar 3, 2002
1429 =========================
1430  -Bugfix in SetErrorState that caused an assertion failure when compiling
1431   simple machines that did not have full transition tables (and thus did
1432   not show up on any example machines). Assertion failure did not occur
1433   when using the switch statement code as ragel does not call SetErrorState
1434   in that case.
1435  -Fixed some missing includes, now compiles on redhat.
1436  -Moved the FsmMachTrans Compare class out of FsmMachTrans. Some compilers
1437   don't deal with nested classes in templates too well.
1438  -Removed old unused BASEREF in fsmgraph and ragel now compiles using
1439   egcs-2.91.66 and presumably SUNWspro. The baseref is no longer needed
1440   because states do not support being elements in multiple lists. I would
1441   rather be able to support more compilers than have this feature.
1442  -Started a README with compilation notes. Started an AUTHORS file.
1443  -Started the user documentation. Describes basic machines and operators.
1444
1445 Ragel 1.0.4 - Mar 1, 2002
1446 =========================
1447  -Ported to the version of Aapl just after 2.2.0 release. See 
1448   http://www.ragel.ca/aapl/ for details on aapl.
1449  -Fixed a bug in the clang example: the newline machine was not stared.
1450  -Added explanations to the clang and mailbox examples. This should
1451   help people that want to learn the lanuage as the manual is far from
1452   complete.
1453
1454 Ragel 1.0.3 - Feb 2, 2002
1455 =========================
1456  -Added aapl to the ragel tree. No longer requires you to download
1457   and build aapl separately. Should avoid discouraging impatient users
1458   from compiling ragel.
1459  -Added the examples to the ragel tree.
1460  -Added configure script checks for bison and flex.
1461  -Fixed makefile so as not to die with newer versions of bison that
1462   write the header of the parser to a .hh file.
1463  -Started ChangeLog file.
1464
1465 Ragel 1.0.2 - Jan 30, 2002
1466 ==========================
1467  -Bug fix in calculating highIndex for table based code. Was using
1468   the length of out tranisition table rather than the value at the
1469   end.
1470  -If high/low index are at the limits, output a define in their place,
1471   not the high/low values themselves so as not to cause compiler warnings.
1472  -If the resulting machines don't have any indicies or functions, then
1473   omit the empty unrefereced static arrays so as not to cause compiler
1474   warnings about unused static vars.
1475  -Fixed variable sized indicies support. The header cannot have any
1476   reference to INDEX_TYPE as that info is not known at the time the header
1477   data is written. Forces us to use a void * for pointers to indicies. In
1478   the c++ versions we are forced to make much of the data non-member
1479   static data in the code portion for the same reason.
1480
1481 Ragel 1.0.1 - Jan 28, 2002
1482 ==========================
1483  -Exe name change from reglang to ragel.
1484  -Added ftabcodegen output code style which uses a table for states and
1485   transitions but uses a switch statement for the function execution.
1486  -Reformatted options in usage dump to look better.
1487  -Support escape sequences in [] sections of regular expressions.
1488
1489 Ragel 1.0 - Jan 25, 2002
1490 ========================
1491  -Initial release.