external/ragel.git
17 years agoBug fix: when fhold was used in scanner pattern actions which get executed on
thurston [Wed, 25 Apr 2007 15:52:18 +0000 (15:52 +0000)]
Bug fix: when fhold was used in scanner pattern actions which get executed on
the last character of the pattern (pattern matches which do not require any
lookahead), fhold was modifying p instead of tokend. This was fixed and the
patact.rl test was modified to cover the case.

git-svn-id: http://svn.complang.org/ragel/trunk@195 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoImproved the message for 5.16.
thurston [Wed, 25 Apr 2007 04:27:46 +0000 (04:27 +0000)]
Improved the message for 5.16.

git-svn-id: http://svn.complang.org/ragel/trunk@194 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved unused variable.
thurston [Wed, 25 Apr 2007 04:03:34 +0000 (04:03 +0000)]
Removed unused variable.

git-svn-id: http://svn.complang.org/ragel/trunk@193 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoImplemented sortByStateId which is called for table-based code generators. The
thurston [Tue, 24 Apr 2007 17:13:42 +0000 (17:13 +0000)]
Implemented sortByStateId which is called for table-based code generators. The
frontend will normally sort, however it may be possible that the intermediate
file gets edited, in which case a sort may be necessary.

git-svn-id: http://svn.complang.org/ragel/trunk@192 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an item.
thurston [Sat, 7 Apr 2007 20:09:02 +0000 (20:09 +0000)]
Added an item.

git-svn-id: http://svn.complang.org/ragel/trunk@180 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSlight reorganization for 5.20 notes.
thurston [Sat, 7 Apr 2007 15:33:00 +0000 (15:33 +0000)]
Slight reorganization for 5.20 notes.

git-svn-id: http://svn.complang.org/ragel/trunk@178 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoDocumentation for 5.20.
thurston [Sat, 7 Apr 2007 15:16:21 +0000 (15:16 +0000)]
Documentation for 5.20.

git-svn-id: http://svn.complang.org/ragel/trunk@177 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded a language-independent test based on cppscan3.rl. Added the necessary
thurston [Sat, 7 Apr 2007 05:06:14 +0000 (05:06 +0000)]
Added a language-independent test based on cppscan3.rl. Added the necessary
transformations as well.

git-svn-id: http://svn.complang.org/ragel/trunk@176 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome cleanup and fixes to the runtests script. The -P option will be changing.
thurston [Sat, 7 Apr 2007 03:50:01 +0000 (03:50 +0000)]
Some cleanup and fixes to the runtests script. The -P option will be changing.
Its use from runtests is currently disabled.

git-svn-id: http://svn.complang.org/ragel/trunk@175 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded clang4, a new language independent test case derived from clang1. Also
thurston [Sat, 7 Apr 2007 01:14:01 +0000 (01:14 +0000)]
Added clang4, a new language independent test case derived from clang1. Also
added the transformations necessary to support it.

git-svn-id: http://svn.complang.org/ragel/trunk@174 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoOrganized ideas for 6.0.
thurston [Fri, 6 Apr 2007 22:22:50 +0000 (22:22 +0000)]
Organized ideas for 6.0.

git-svn-id: http://svn.complang.org/ragel/trunk@173 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoA test for the ruby frontend scanner.
thurston [Fri, 6 Apr 2007 20:11:57 +0000 (20:11 +0000)]
A test for the ruby frontend scanner.

git-svn-id: http://svn.complang.org/ragel/trunk@172 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an item.
thurston [Fri, 6 Apr 2007 18:25:39 +0000 (18:25 +0000)]
Added an item.

git-svn-id: http://svn.complang.org/ragel/trunk@171 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoShould use the most recent version of Ragel and Kelbt for building the parsers.
thurston [Fri, 6 Apr 2007 18:25:12 +0000 (18:25 +0000)]
Should use the most recent version of Ragel and Kelbt for building the parsers.

git-svn-id: http://svn.complang.org/ragel/trunk@170 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoDelete the temporary file.
thurston [Fri, 6 Apr 2007 18:24:27 +0000 (18:24 +0000)]
Delete the temporary file.

git-svn-id: http://svn.complang.org/ragel/trunk@169 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded support for Ruby comments and regular expression literals.
thurston [Fri, 6 Apr 2007 18:22:27 +0000 (18:22 +0000)]
Added support for Ruby comments and regular expression literals.

git-svn-id: http://svn.complang.org/ragel/trunk@168 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe runtests script was improved so that the Java and Ruby test cases don't
thurston [Thu, 5 Apr 2007 03:48:55 +0000 (03:48 +0000)]
The runtests script was improved so that the Java and Ruby test cases don't
need ALLOW_GENFLAGS set.

git-svn-id: http://svn.complang.org/ragel/trunk@167 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoVarious fixes which get the existing ruby test cases (via the language
thurston [Thu, 5 Apr 2007 03:47:19 +0000 (03:47 +0000)]
Various fixes which get the existing ruby test cases (via the language
independent test cases) working. Fixes to control flow, scanners, action
execution and others.

git-svn-id: http://svn.complang.org/ragel/trunk@166 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoDeclaration of stacks now works.
thurston [Wed, 4 Apr 2007 21:18:38 +0000 (21:18 +0000)]
Declaration of stacks now works.

git-svn-id: http://svn.complang.org/ragel/trunk@165 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFirst cut of a test-suite transformation for Ruby. Some of the tests work.
thurston [Wed, 4 Apr 2007 20:58:06 +0000 (20:58 +0000)]
First cut of a test-suite transformation for Ruby. Some of the tests work.

git-svn-id: http://svn.complang.org/ragel/trunk@164 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed break and hold.
thurston [Wed, 4 Apr 2007 19:14:24 +0000 (19:14 +0000)]
Fixed break and hold.

git-svn-id: http://svn.complang.org/ragel/trunk@163 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUse the new import feature of Ragel for bringing in defines from the parser
thurston [Wed, 4 Apr 2007 02:27:54 +0000 (02:27 +0000)]
Use the new import feature of Ragel for bringing in defines from the parser
header as machine definitions instead of repeating them in scanner.

git-svn-id: http://svn.complang.org/ragel/trunk@162 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoWhen building on kubuntu 6.10 the -n option to echo is on by default causing
thurston [Wed, 4 Apr 2007 01:12:44 +0000 (01:12 +0000)]
When building on kubuntu 6.10 the -n option to echo is on by default causing
the \ character to be interpreted as an escape. Filtering through tr is one way
around this.

git-svn-id: http://svn.complang.org/ragel/trunk@161 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved malloc.h includes. This is not a standard header and does not exist on
thurston [Fri, 30 Mar 2007 16:48:47 +0000 (16:48 +0000)]
Removed malloc.h includes. This is not a standard header and does not exist on
OSX. Use stdlib.h instead.

git-svn-id: http://svn.complang.org/ragel/trunk@160 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved claim that generated code runs nearly as fast as hand-coded parsers, as
thurston [Fri, 30 Mar 2007 16:46:43 +0000 (16:46 +0000)]
Removed claim that generated code runs nearly as fast as hand-coded parsers, as
this claim is not substantiated.

git-svn-id: http://svn.complang.org/ragel/trunk@159 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe cs variable is now always initialized, unless the "nocs" option is given to
thurston [Tue, 27 Mar 2007 03:45:11 +0000 (03:45 +0000)]
The cs variable is now always initialized, unless the "nocs" option is given to
the write init command. If there is no main machine, cs is initialized to the
entry point of the last machine instantiation.

git-svn-id: http://svn.complang.org/ragel/trunk@155 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed parallel make dependency bug. Patch from Jeremy Hinegardner.
thurston [Mon, 26 Mar 2007 01:25:50 +0000 (01:25 +0000)]
Fixed parallel make dependency bug. Patch from Jeremy Hinegardner.

git-svn-id: http://svn.complang.org/ragel/trunk@153 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoIn the SEE ALSO section changed rlcodegen to rlgen-cd, rlgen-dot and
thurston [Mon, 26 Mar 2007 01:25:02 +0000 (01:25 +0000)]
In the SEE ALSO section changed rlcodegen to rlgen-cd, rlgen-dot and
rlgen-java.

git-svn-id: http://svn.complang.org/ragel/trunk@152 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome fixes which silence warnings emitted by the microsoft compiler. Adapted
thurston [Sun, 25 Mar 2007 22:46:35 +0000 (22:46 +0000)]
Some fixes which silence warnings emitted by the microsoft compiler. Adapted
from patch by Josef Goettgens.

git-svn-id: http://svn.complang.org/ragel/trunk@151 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe IDENT_* functions don't need to be virtual.
thurston [Sun, 25 Mar 2007 22:44:11 +0000 (22:44 +0000)]
The IDENT_* functions don't need to be virtual.

git-svn-id: http://svn.complang.org/ragel/trunk@150 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoDocumented version 5.19.
thurston [Wed, 14 Mar 2007 20:48:38 +0000 (20:48 +0000)]
Documented version 5.19.

git-svn-id: http://svn.complang.org/ragel/trunk@148 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated the manual section on instantiation to reflect the 5.19 features.
thurston [Wed, 14 Mar 2007 19:58:14 +0000 (19:58 +0000)]
Updated the manual section on instantiation to reflect the 5.19 features.
Exports in D cannot use defines like C. Static const ints are used instead.
Removed a left-over debug output statement from rlscan.rl.

git-svn-id: http://svn.complang.org/ragel/trunk@147 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded a C test for importing and a D test for exporting.
thurston [Wed, 14 Mar 2007 19:55:37 +0000 (19:55 +0000)]
Added a C test for importing and a D test for exporting.

git-svn-id: http://svn.complang.org/ragel/trunk@146 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoHandle the unset startState case in dot generation.
thurston [Wed, 14 Mar 2007 17:46:56 +0000 (17:46 +0000)]
Handle the unset startState case in dot generation.

git-svn-id: http://svn.complang.org/ragel/trunk@145 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoImporting moved into the primary scanner. Import statements now open up a new
thurston [Wed, 14 Mar 2007 17:46:22 +0000 (17:46 +0000)]
Importing moved into the primary scanner. Import statements now open up a new
Scanner object which looks for outside code tokens that can be interpreted as
machine definitions, then sends them to the parser, all the while ignoring
everything else.

git-svn-id: http://svn.complang.org/ragel/trunk@144 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoStarted on a scanner for importing definitions.
thurston [Tue, 13 Mar 2007 20:52:55 +0000 (20:52 +0000)]
Started on a scanner for importing definitions.

git-svn-id: http://svn.complang.org/ragel/trunk@143 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoMoved scanner class into a new header rlscan.h.
thurston [Tue, 13 Mar 2007 17:31:39 +0000 (17:31 +0000)]
Moved scanner class into a new header rlscan.h.

git-svn-id: http://svn.complang.org/ragel/trunk@142 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSilence warnings about definite and/or possible use before initialization.
thurston [Mon, 12 Mar 2007 23:57:56 +0000 (23:57 +0000)]
Silence warnings about definite and/or possible use before initialization.

git-svn-id: http://svn.complang.org/ragel/trunk@141 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoIf the main machine is not present then do not emit an error. Generate the
thurston [Mon, 12 Mar 2007 20:58:18 +0000 (20:58 +0000)]
If the main machine is not present then do not emit an error. Generate the
machine without a start state and do not initialize cs in the write init code.

git-svn-id: http://svn.complang.org/ragel/trunk@140 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded tests for exports and entry points. For machine exports, added "ex_" in
thurston [Mon, 12 Mar 2007 16:38:57 +0000 (16:38 +0000)]
Added tests for exports and entry points. For machine exports, added "ex_" in
between the machine name and the export name.

git-svn-id: http://svn.complang.org/ragel/trunk@139 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded exports and entry points to Java and Ruby code generation.
thurston [Mon, 12 Mar 2007 15:42:01 +0000 (15:42 +0000)]
Added exports and entry points to Java and Ruby code generation.

git-svn-id: http://svn.complang.org/ragel/trunk@138 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe startstate, first final and error state writing can be moved to FsmCodeGen.
thurston [Mon, 12 Mar 2007 15:13:23 +0000 (15:13 +0000)]
The startstate, first final and error state writing can be moved to FsmCodeGen.
At this time entry points are written as well.

git-svn-id: http://svn.complang.org/ragel/trunk@137 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAll machine instantiations are now implicitly referenced and always generated,
thurston [Mon, 12 Mar 2007 03:53:03 +0000 (03:53 +0000)]
All machine instantiations are now implicitly referenced and always generated,
even if they are not referenced. In the backend, entry points will be written
out alongside start, error and first final states. This is currently
implemented in tabcodegen.cpp in rlgen-cd.

The entry keyword (introduced in the last revision) was removed as it will not
be used.

More name changes writeOut* => write*.

git-svn-id: http://svn.complang.org/ragel/trunk@136 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoIn the port from flex to ragel, the Name separator :: in Ragel code was lost.
thurston [Sun, 11 Mar 2007 23:26:51 +0000 (23:26 +0000)]
In the port from flex to ragel, the Name separator :: in Ragel code was lost.
Added it back.

git-svn-id: http://svn.complang.org/ragel/trunk@135 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoImplemented an export feature, for exporting single-character machine
thurston [Sat, 10 Mar 2007 23:21:36 +0000 (23:21 +0000)]
Implemented an export feature, for exporting single-character machine
definitions in #define format.

Changed function names: writeOut*() => write*().

git-svn-id: http://svn.complang.org/ragel/trunk@134 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSwitched from rlcodegen to rlgen-cd. Silenced a warning in statechart.rl.
thurston [Sat, 10 Mar 2007 23:20:39 +0000 (23:20 +0000)]
Switched from rlcodegen to rlgen-cd. Silenced a warning in statechart.rl.

git-svn-id: http://svn.complang.org/ragel/trunk@133 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoClean target missed new man pages, fixed.
thurston [Sat, 10 Mar 2007 23:19:40 +0000 (23:19 +0000)]
Clean target missed new man pages, fixed.

git-svn-id: http://svn.complang.org/ragel/trunk@132 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved completed item. Added new item.
thurston [Sat, 10 Mar 2007 23:04:08 +0000 (23:04 +0000)]
Removed completed item. Added new item.

git-svn-id: http://svn.complang.org/ragel/trunk@131 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoWhen multiple conditions are executed on a single character they need to have a
thurston [Sat, 10 Mar 2007 03:58:06 +0000 (03:58 +0000)]
When multiple conditions are executed on a single character they need to have a
forced order. Previously, ordering relied on pointer-based sets, which caused
results to vary by compiler. Ordering is now done using conditon action
declaration order. This fixes the failure of cond4.rl which occurred with
g++ 4.1 and other compiler versions.

git-svn-id: http://svn.complang.org/ragel/trunk@130 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved item just completed.
thurston [Fri, 9 Mar 2007 20:16:38 +0000 (20:16 +0000)]
Removed item just completed.

git-svn-id: http://svn.complang.org/ragel/trunk@129 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an option -l to rlgen-cd which inhibits the the writing of #line
thurston [Fri, 9 Mar 2007 20:16:12 +0000 (20:16 +0000)]
Added an option -l to rlgen-cd which inhibits the the writing of #line
directives.

git-svn-id: http://svn.complang.org/ragel/trunk@128 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThese now live in rlgen-dot.
thurston [Fri, 9 Mar 2007 20:15:31 +0000 (20:15 +0000)]
These now live in rlgen-dot.

git-svn-id: http://svn.complang.org/ragel/trunk@127 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded a new syntax for verbose embeddings. This adds parentheses:
thurston [Fri, 9 Mar 2007 19:46:32 +0000 (19:46 +0000)]
Added a new syntax for verbose embeddings. This adds parentheses:

    $from(action_name);

Verbose embeddings without parentheses can make code difficult to read
because they force a space in the middle of an action embedding. There is a
tendency to associtate spaces with concatenation. Without syntax
highlighting to make it clear that the embedding type is a keyword, the
problem is especially bad. The danger is that a verbose embedding could be
read as an embedding of the embedding type:

    main := 'foo' $from some_action '\n';

With parentheses this statment reads much more clearly.

    main := 'foo' $from(some_action) '\n';

git-svn-id: http://svn.complang.org/ragel/trunk@126 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded two entries.
thurston [Mon, 5 Mar 2007 14:28:59 +0000 (14:28 +0000)]
Added two entries.

git-svn-id: http://svn.complang.org/ragel/trunk@124 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed the distclean target, it was calling clean in the subdirs. Added a define
thurston [Sat, 3 Mar 2007 15:13:42 +0000 (15:13 +0000)]
Fixed the distclean target, it was calling clean in the subdirs. Added a define
for strcasecmp which is not available on windows.

git-svn-id: http://svn.complang.org/ragel/trunk@121 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoMake use of @datadir@ and @mandir@ in doc/Makefile.in for specifying where
thurston [Fri, 2 Mar 2007 19:39:42 +0000 (19:39 +0000)]
Make use of @datadir@ and @mandir@ in doc/Makefile.in for specifying where
documentation should be installed. Patch from Marcus Rueckert. The prefix
variable should be lowercase in makefiles, since @datadir@ and @mandir@ expect
this. Added names to the CREDITS file.

git-svn-id: http://svn.complang.org/ragel/trunk@120 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded Josef Goettgens.
thurston [Fri, 2 Mar 2007 18:13:47 +0000 (18:13 +0000)]
Added Josef Goettgens.

git-svn-id: http://svn.complang.org/ragel/trunk@119 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved extra ;, spelling fix in comment.
thurston [Fri, 2 Mar 2007 18:10:58 +0000 (18:10 +0000)]
Removed extra ;, spelling fix in comment.

git-svn-id: http://svn.complang.org/ragel/trunk@118 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe Action::numRefs() and RedAction::numRefs() functions should return int.
thurston [Fri, 2 Mar 2007 17:47:03 +0000 (17:47 +0000)]
The Action::numRefs() and RedAction::numRefs() functions should return int.
Since the numbers these functions return are usually very low and the result is
only checked with the test > 0, the error never manifested.

git-svn-id: http://svn.complang.org/ragel/trunk@117 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded malloc.h includes. From Josef Goettgens.
thurston [Fri, 2 Mar 2007 17:38:08 +0000 (17:38 +0000)]
Added malloc.h includes. From Josef Goettgens.

git-svn-id: http://svn.complang.org/ragel/trunk@116 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed some references to Java left over from the split. Also, the line
thurston [Wed, 14 Feb 2007 15:45:31 +0000 (15:45 +0000)]
Fixed some references to Java left over from the split. Also, the line
directive function does not need to guard against java code.

git-svn-id: http://svn.complang.org/ragel/trunk@115 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded item.
thurston [Wed, 14 Feb 2007 05:35:31 +0000 (05:35 +0000)]
Added item.

git-svn-id: http://svn.complang.org/ragel/trunk@114 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome additional fixes before release.
thurston [Wed, 14 Feb 2007 00:34:23 +0000 (00:34 +0000)]
Some additional fixes before release.

git-svn-id: http://svn.complang.org/ragel/trunk@112 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoEnlarged the graphics. Improved the priority section and the lookahead section.
thurston [Wed, 14 Feb 2007 00:07:27 +0000 (00:07 +0000)]
Enlarged the graphics. Improved the priority section and the lookahead section.

git-svn-id: http://svn.complang.org/ragel/trunk@111 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoDiscontinuing ragel.spec. It is more appropriate for this to be written by
thurston [Tue, 13 Feb 2007 21:00:23 +0000 (21:00 +0000)]
Discontinuing ragel.spec. It is more appropriate for this to be written by
package maintenance developers.

git-svn-id: http://svn.complang.org/ragel/trunk@110 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated the ChangeLog for 5.18.
thurston [Tue, 13 Feb 2007 20:56:27 +0000 (20:56 +0000)]
Updated the ChangeLog for 5.18.

git-svn-id: http://svn.complang.org/ragel/trunk@109 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an item.
thurston [Tue, 13 Feb 2007 19:14:55 +0000 (19:14 +0000)]
Added an item.

git-svn-id: http://svn.complang.org/ragel/trunk@108 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe code generators now exit immediately if the language is not correct. Write
thurston [Tue, 13 Feb 2007 19:11:38 +0000 (19:11 +0000)]
The code generators now exit immediately if the language is not correct.  Write
statements are no longer interpreted in rlgen-dot. Since they have no meaning
in this generator, it is best to ignore them.

git-svn-id: http://svn.complang.org/ragel/trunk@107 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated the help and version information in the backend programs. Also updated
thurston [Tue, 13 Feb 2007 18:30:10 +0000 (18:30 +0000)]
Updated the help and version information in the backend programs. Also updated
the option processing. Renamed and updated the man page for the backend. Added
man pages for the new backend programs.

Removed unused options from the list of options which are accepted in the
backend programs.

git-svn-id: http://svn.complang.org/ragel/trunk@106 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe rlcodegen executable was changed to rlgen-cd.
thurston [Mon, 12 Feb 2007 05:48:51 +0000 (05:48 +0000)]
The rlcodegen executable was changed to rlgen-cd.

git-svn-id: http://svn.complang.org/ragel/trunk@105 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoMoved rlcodegen to rlgen-cd.
thurston [Mon, 12 Feb 2007 05:32:59 +0000 (05:32 +0000)]
Moved rlcodegen to rlgen-cd.

git-svn-id: http://svn.complang.org/ragel/trunk@104 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSplit dotfile generation out into its own executable.
thurston [Mon, 12 Feb 2007 05:18:28 +0000 (05:18 +0000)]
Split dotfile generation out into its own executable.

git-svn-id: http://svn.complang.org/ragel/trunk@103 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed error in ruby code generation which crept in during the last change.
thurston [Mon, 12 Feb 2007 03:51:30 +0000 (03:51 +0000)]
Fixed error in ruby code generation which crept in during the last change.
Updated the machine name and alphtype in atoi3 to reflect the fact that it is a
ruby test.

git-svn-id: http://svn.complang.org/ragel/trunk@102 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSame patch as previous revision, except for Ruby: KEY() should be returning a
thurston [Sun, 11 Feb 2007 17:40:50 +0000 (17:40 +0000)]
Same patch as previous revision, except for Ruby: KEY() should be returning a
string, allowing it to be interpreted. ARRAY_ITEM() now accepts a string.

git-svn-id: http://svn.complang.org/ragel/trunk@101 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoKEY() should be returning a string, allowing it to be interpreted. ARRAY_ITEM()
thurston [Sun, 11 Feb 2007 17:30:07 +0000 (17:30 +0000)]
KEY() should be returning a string, allowing it to be interpreted. ARRAY_ITEM()
now accepts a string.

git-svn-id: http://svn.complang.org/ragel/trunk@100 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoWe have gone back to supporting all alphtypes. We don't need to force the byte
thurston [Sun, 11 Feb 2007 17:24:46 +0000 (17:24 +0000)]
We have gone back to supporting all alphtypes. We don't need to force the byte
alphabet type anymore.

git-svn-id: http://svn.complang.org/ragel/trunk@99 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUse a single function for both the active flag (now called ignoreSection) and
thurston [Sun, 11 Feb 2007 06:58:05 +0000 (06:58 +0000)]
Use a single function for both the active flag (now called ignoreSection) and
the parser exists test. The initialization of ignoreSection was flipped to fix
a bug which inhibited the parser exists test.

git-svn-id: http://svn.complang.org/ragel/trunk@98 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe parserExists function should be called before active is checked.
thurston [Sun, 11 Feb 2007 06:30:54 +0000 (06:30 +0000)]
The parserExists function should be called before active is checked.

git-svn-id: http://svn.complang.org/ragel/trunk@97 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoWhen displaying printables in graphviz output, print 32 as SP.
thurston [Sun, 11 Feb 2007 06:12:22 +0000 (06:12 +0000)]
When displaying printables in graphviz output, print 32 as SP.

git-svn-id: http://svn.complang.org/ragel/trunk@96 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoNew array generation for Java. For a single array a series of initialization
thurston [Sun, 11 Feb 2007 05:56:19 +0000 (05:56 +0000)]
New array generation for Java. For a single array a series of initialization
functions are created, with each function only handling a max number of
elements. This compiles to something very similar to what the java compiler
produces for literally specified arrays, except we use multiple functions and
can therefore handle arrays which would cause the "code too large" error if
specified with a list of literal values.

git-svn-id: http://svn.complang.org/ragel/trunk@95 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed the segfault which occured when a machine reference failed.
thurston [Sun, 11 Feb 2007 01:09:53 +0000 (01:09 +0000)]
Fixed the segfault which occured when a machine reference failed.

git-svn-id: http://svn.complang.org/ragel/trunk@94 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded a couple items.
thurston [Sat, 10 Feb 2007 20:23:57 +0000 (20:23 +0000)]
Added a couple items.

git-svn-id: http://svn.complang.org/ragel/trunk@93 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoFixed the null dereference and consequential segfault which occurred when
thurston [Sat, 10 Feb 2007 17:50:23 +0000 (17:50 +0000)]
Fixed the null dereference and consequential segfault which occurred when
trying to create empty machines with [] and // and /a[]b/.

git-svn-id: http://svn.complang.org/ragel/trunk@92 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoMake control codes with escape sequences into printable characters. From Arne
thurston [Fri, 9 Feb 2007 05:02:30 +0000 (05:02 +0000)]
Make control codes with escape sequences into printable characters. From Arne
Goedeke.

git-svn-id: http://svn.complang.org/ragel/trunk@91 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoRemoved a completed item.
thurston [Fri, 9 Feb 2007 04:04:56 +0000 (04:04 +0000)]
Removed a completed item.

git-svn-id: http://svn.complang.org/ragel/trunk@90 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated to the latest aapl. This completely eliminates the shallowCopy
thurston [Thu, 8 Feb 2007 19:14:57 +0000 (19:14 +0000)]
Updated to the latest aapl. This completely eliminates the shallowCopy
function. With that, a definite memory leak is fixed.

git-svn-id: http://svn.complang.org/ragel/trunk@89 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated an item.
thurston [Thu, 8 Feb 2007 03:32:48 +0000 (03:32 +0000)]
Updated an item.

git-svn-id: http://svn.complang.org/ragel/trunk@88 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded missing write init.
thurston [Tue, 6 Feb 2007 21:09:33 +0000 (21:09 +0000)]
Added missing write init.

git-svn-id: http://svn.complang.org/ragel/trunk@87 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an item.
thurston [Tue, 6 Feb 2007 20:54:28 +0000 (20:54 +0000)]
Added an item.

git-svn-id: http://svn.complang.org/ragel/trunk@86 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded a ruby test: atoi3.rl and adapted the test harness to build and run ruby
thurston [Tue, 6 Feb 2007 17:51:50 +0000 (17:51 +0000)]
Added a ruby test: atoi3.rl and adapted the test harness to build and run ruby
tests.

git-svn-id: http://svn.complang.org/ragel/trunk@85 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoAdded an item.
thurston [Tue, 6 Feb 2007 17:49:37 +0000 (17:49 +0000)]
Added an item.

git-svn-id: http://svn.complang.org/ragel/trunk@84 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoUpdated Victor's email address. The frontend parameter check must accept -R.
thurston [Tue, 6 Feb 2007 04:38:39 +0000 (04:38 +0000)]
Updated Victor's email address. The frontend parameter check must accept -R.
The genLineDirective function in rlcodegen must guard against graphviz dotfile
generation.

If the error state exists, it is now the first state. Since the graphviz
generation does not print the error state, a gap over the error state made it
appear as though a state was missing.

git-svn-id: http://svn.complang.org/ragel/trunk@83 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome fixes and cleanup. Some basic tests appear to work.
thurston [Tue, 6 Feb 2007 04:12:46 +0000 (04:12 +0000)]
Some fixes and cleanup. Some basic tests appear to work.

git-svn-id: http://svn.complang.org/ragel/trunk@82 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome documentation updates for 5.18. The recursive rules in the makefile can
thurston [Mon, 5 Feb 2007 23:36:22 +0000 (23:36 +0000)]
Some documentation updates for 5.18. The recursive rules in the makefile can
use hidden commands.

git-svn-id: http://svn.complang.org/ragel/trunk@81 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe reference to the act variable in the scanner switch was not done with
thurston [Mon, 5 Feb 2007 21:23:25 +0000 (21:23 +0000)]
The reference to the act variable in the scanner switch was not done with
ACT(). Now fixed.

git-svn-id: http://svn.complang.org/ragel/trunk@80 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoNow that static data is also const, there is no need to eliminate the error and
thurston [Mon, 5 Feb 2007 16:31:25 +0000 (16:31 +0000)]
Now that static data is also const, there is no need to eliminate the error and
first final states from the write data statement in order to avoid a gcc
compiler warnings. For a first example all the data elements should be written.

git-svn-id: http://svn.complang.org/ragel/trunk@79 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe writeStatement function is now part of CodeGenData.
thurston [Mon, 5 Feb 2007 01:31:52 +0000 (01:31 +0000)]
The writeStatement function is now part of CodeGenData.

Leading code which is common to all finishRagelDef() functions has been moved
to the parser class, immediately before calling finishRagelDef().

The setLabelsNeeded() function is now called from writeExec in code generators
that require it (in-place goto and split goto).

The hasBeenPrepared variable is no longer needed, removed.

git-svn-id: http://svn.complang.org/ragel/trunk@78 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoThe conversion from the string language type which comes in from the XML file
thurston [Sun, 4 Feb 2007 23:54:47 +0000 (23:54 +0000)]
The conversion from the string language type which comes in from the XML file
to the hostLangType and hostLang variables is now handled by the redfsm.a
library. The code generators can use hostLang variable to check that the host
language is correct.

Adapted the line directive writing for Java and Ruby. In these languages a
comment which indicates the line number is written.

git-svn-id: http://svn.complang.org/ragel/trunk@77 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoSome cleanup of code. These functions are not needed in Java and Ruby code
thurston [Sun, 4 Feb 2007 18:27:10 +0000 (18:27 +0000)]
Some cleanup of code. These functions are not needed in Java and Ruby code
generation.

git-svn-id: http://svn.complang.org/ragel/trunk@76 052ea7fc-9027-0410-9066-f65837a77df0

17 years agoMovement of common classes and code to common.a.
thurston [Sun, 4 Feb 2007 18:21:42 +0000 (18:21 +0000)]
Movement of common classes and code to common.a.

git-svn-id: http://svn.complang.org/ragel/trunk@75 052ea7fc-9027-0410-9066-f65837a77df0