external/ragel.git
17 years agoEOF actions and targets for processing tokens are now set in scanner final
thurston [Fri, 28 Sep 2007 03:56:01 +0000 (03:56 +0000)]
EOF actions and targets for processing tokens are now set in scanner final
states. EOF transitions (present when an EOF targets are present) are now
passed to the backend and stored. Appropriate code not yet generated.

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

17 years agoNot yet supporting minimization of states with eof targets.
thurston [Thu, 27 Sep 2007 21:21:09 +0000 (21:21 +0000)]
Not yet supporting minimization of states with eof targets.

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

17 years agoAdded the eofTarget to StateAp. This will be used only to track the transition
thurston [Thu, 27 Sep 2007 16:07:44 +0000 (16:07 +0000)]
Added the eofTarget to StateAp. This will be used only to track the transition
back to the start state in scanners.

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

17 years agoRemoved the write eof command.
thurston [Mon, 24 Sep 2007 21:05:15 +0000 (21:05 +0000)]
Removed the write eof command.

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

17 years agoAdded an override for the eof variable.
thurston [Mon, 24 Sep 2007 19:47:14 +0000 (19:47 +0000)]
Added an override for the eof variable.

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

17 years agoIntrocuded the "eof" variable for indicating the end of file. The p variable is
thurston [Mon, 24 Sep 2007 19:02:37 +0000 (19:02 +0000)]
Introcuded the "eof" variable for indicating the end of file. The p variable is
checked against eof when the processing loop is broken out of due to p == pe.
If p == eof at this time then the EOF actions are executed. The variable is
required only when EOF actions have been emebedded.

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

17 years agoAdded missing include.
thurston [Mon, 24 Sep 2007 14:19:13 +0000 (14:19 +0000)]
Added missing include.

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

17 years agoRemove the 'noend' write option. This example is referenced a lot and as a
thurston [Sun, 23 Sep 2007 17:52:45 +0000 (17:52 +0000)]
Remove the 'noend' write option. This example is referenced a lot and as a
first example it shouldn't contain a special purpose write option like 'noend'.

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

17 years agoDocumentation for version 5.24.
thurston [Sun, 16 Sep 2007 15:47:18 +0000 (15:47 +0000)]
Documentation for version 5.24.

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

17 years agoAdded documentation for prepush and postpop.
thurston [Sun, 16 Sep 2007 15:31:54 +0000 (15:31 +0000)]
Added documentation for prepush and postpop.

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

17 years agoAdded two new statements: prepush and postpop. These are code blocks that are
thurston [Sat, 15 Sep 2007 19:46:38 +0000 (19:46 +0000)]
Added two new statements: prepush and postpop. These are code blocks that are
written out during call and return statements immediately before pushing the
current state to the state stack on a call and immediately after popping the
current state on a return. These can be used to implement a dynamically
resizable stack. Test cases are in test/recdescent?.rl.

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

17 years agoRemoved non-issue.
thurston [Fri, 14 Sep 2007 01:11:59 +0000 (01:11 +0000)]
Removed non-issue.

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

17 years agoIf the condition embedding code runs out of available characters in the
thurston [Thu, 13 Sep 2007 17:54:31 +0000 (17:54 +0000)]
If the condition embedding code runs out of available characters in the
keyspace an error message is emitted. A paragraph about this was added to the
manual.

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

17 years agoThe first example that appears in the manual uses the special-purpose 'noend'
thurston [Thu, 13 Sep 2007 00:49:49 +0000 (00:49 +0000)]
The first example that appears in the manual uses the special-purpose 'noend'
write option. This tends to trip people up. Added a basic example which appears
first.

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

17 years agoPatch from Victor Hugo Borja <vic@rubyforge.org>
thurston [Thu, 6 Sep 2007 16:23:17 +0000 (16:23 +0000)]
Patch from Victor Hugo Borja <vic@rubyforge.org>

This patch implements -T1 -F0 -F1 and -G0 in the ruby code generator.
Goto-driven code generation requires rubinius asm directives (specify with
--rbx option). These code generators pass all the ruby tests.

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

17 years agoAdded some notes on the fixed size stack issue.
thurston [Thu, 6 Sep 2007 15:01:27 +0000 (15:01 +0000)]
Added some notes on the fixed size stack issue.

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

17 years agoShould be crediting Arbor.
thurston [Wed, 8 Aug 2007 20:17:03 +0000 (20:17 +0000)]
Should be crediting Arbor.

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

17 years agoAdded item.
thurston [Tue, 7 Aug 2007 14:57:18 +0000 (14:57 +0000)]
Added item.

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

17 years agoUpdates to TODO and error message.
thurston [Fri, 3 Aug 2007 17:16:55 +0000 (17:16 +0000)]
Updates to TODO and error message.

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

17 years agoDocumentation for 5.23.
thurston [Tue, 24 Jul 2007 21:16:08 +0000 (21:16 +0000)]
Documentation for 5.23.

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

17 years agoremoved done item
thurston [Mon, 23 Jul 2007 04:27:42 +0000 (04:27 +0000)]
removed done item

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

17 years agoGrammar fixes: changing "which" to "that" where appropriate.
thurston [Mon, 23 Jul 2007 04:14:31 +0000 (04:14 +0000)]
Grammar fixes: changing "which" to "that" where appropriate.

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

17 years agoRenaming "Entering Actions" to "Starting Actions."
thurston [Sun, 22 Jul 2007 02:31:55 +0000 (02:31 +0000)]
Renaming "Entering Actions" to "Starting Actions."

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

17 years agoadded an item.
thurston [Fri, 20 Jul 2007 18:59:02 +0000 (18:59 +0000)]
added an item.

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

17 years agoAdded an item.
thurston [Wed, 11 Jul 2007 18:07:00 +0000 (18:07 +0000)]
Added an item.

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

17 years agoAdded item to look into.
thurston [Fri, 6 Jul 2007 16:00:26 +0000 (16:00 +0000)]
Added item to look into.

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

17 years agoRemainder of formatting changes.
thurston [Sun, 24 Jun 2007 21:43:34 +0000 (21:43 +0000)]
Remainder of formatting changes.

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

17 years agoFormatting updates.
thurston [Sat, 23 Jun 2007 01:55:56 +0000 (01:55 +0000)]
Formatting updates.

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

17 years agoImproved the error message given when there is a write statement but no machine
thurston [Fri, 22 Jun 2007 03:50:05 +0000 (03:50 +0000)]
Improved the error message given when there is a write statement but no machine
instantiations and hence no state machine.

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

17 years agoAdded a section on recursion.
thurston [Thu, 21 Jun 2007 00:02:01 +0000 (00:02 +0000)]
Added a section on recursion.

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

17 years agoMoved cases around.
thurston [Wed, 20 Jun 2007 23:43:04 +0000 (23:43 +0000)]
Moved cases around.

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

17 years agoUpdates to "machine instantiation", "write init" and "write exports" sectons.
thurston [Wed, 20 Jun 2007 23:14:08 +0000 (23:14 +0000)]
Updates to "machine instantiation", "write init" and "write exports" sectons.
Added the "variables used by ragel" section.

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

17 years agoRemoved references to rlcodegen.
thurston [Wed, 20 Jun 2007 20:21:41 +0000 (20:21 +0000)]
Removed references to rlcodegen.

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

17 years agoMore formatting changes.
thurston [Tue, 19 Jun 2007 03:22:30 +0000 (03:22 +0000)]
More formatting changes.

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

17 years agoStarted reworking formatting.
thurston [Tue, 19 Jun 2007 02:03:30 +0000 (02:03 +0000)]
Started reworking formatting.

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

17 years agoEliminated the use callcc as an alternative to goto. Instead, the named breaks
thurston [Tue, 19 Jun 2007 00:30:56 +0000 (00:30 +0000)]
Eliminated the use callcc as an alternative to goto. Instead, the named breaks
implementation used in the java code generator is imitated using control flow
variables.

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

17 years ago5.22 date wrong in changelog, fixed.
thurston [Fri, 15 Jun 2007 22:06:54 +0000 (22:06 +0000)]
5.22 date wrong in changelog, fixed.

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

17 years agoUpdates for release 5.22.
thurston [Thu, 14 Jun 2007 15:01:51 +0000 (15:01 +0000)]
Updates for release 5.22.

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

17 years agoAdded variable statement to man page.
thurston [Thu, 14 Jun 2007 14:10:18 +0000 (14:10 +0000)]
Added variable statement to man page.

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

17 years agoNote on the data variable for ruby and java code.
thurston [Thu, 14 Jun 2007 03:49:47 +0000 (03:49 +0000)]
Note on the data variable for ruby and java code.

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

17 years agoThe "data" variable can now be overridden using the variable statement. This is
thurston [Thu, 14 Jun 2007 03:46:41 +0000 (03:46 +0000)]
The "data" variable can now be overridden using the variable statement. This is
applicable in Ruby and Java code only.

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

17 years agoAdded an item.
thurston [Tue, 12 Jun 2007 14:10:03 +0000 (14:10 +0000)]
Added an item.

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

17 years agoAdjusted whitespace in xml output.
thurston [Mon, 11 Jun 2007 14:00:19 +0000 (14:00 +0000)]
Adjusted whitespace in xml output.

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

17 years agoDocumentation updates.
thurston [Sun, 10 Jun 2007 18:37:09 +0000 (18:37 +0000)]
Documentation updates.

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

17 years agoCan cleanup the xml code generation and remove the holdte and execte tags
thurston [Sun, 10 Jun 2007 17:21:26 +0000 (17:21 +0000)]
Can cleanup the xml code generation and remove the holdte and execte tags
following the previous commit.

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

17 years agoThe p varialbe is now set up at the beginning of a scanner action, rather than
thurston [Sat, 9 Jun 2007 22:01:46 +0000 (22:01 +0000)]
The p varialbe is now set up at the beginning of a scanner action, rather than
at the end. This leaves scanner actions free to manipulate p and removes the
need for the special holdTE and execTE (TE for tokend) versions of hold and
exec. It also removes the need to set p = tokend-1 immediately before any
control flow.

The error handler in LmSwitch actions is now generated by the frontend, rather
than the backend. This became possible when the creation of the error state was
moved to the frontend.

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

17 years agoChanged the names of the generated scanner actions to match the types of
thurston [Sat, 9 Jun 2007 21:35:12 +0000 (21:35 +0000)]
Changed the names of the generated scanner actions to match the types of
generated scanner actions.

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

17 years agoUse the variable feature for pullscan.
thurston [Sat, 9 Jun 2007 21:31:11 +0000 (21:31 +0000)]
Use the variable feature for pullscan.

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

17 years agoInclude the offset of p in the test.
thurston [Fri, 8 Jun 2007 19:51:30 +0000 (19:51 +0000)]
Include the offset of p in the test.

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

17 years agoPut the scanner action generators together.
thurston [Fri, 8 Jun 2007 16:45:24 +0000 (16:45 +0000)]
Put the scanner action generators together.

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

17 years agoUpdated documentation for -S and -M.
thurston [Fri, 8 Jun 2007 13:32:42 +0000 (13:32 +0000)]
Updated documentation for -S and -M.

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

17 years agoBug fix: when -S or -M was given the ragel version number was not emitted,
thurston [Fri, 8 Jun 2007 13:31:54 +0000 (13:31 +0000)]
Bug fix: when -S or -M was given the ragel version number was not emitted,
causing the backend to reject the intermediate format. From Tim Potter.

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

17 years agoNeed to isolate the start state of a scanner before setting the to-state and
thurston [Sun, 13 May 2007 00:21:33 +0000 (00:21 +0000)]
Need to isolate the start state of a scanner before setting the to-state and
from-state actions which clear and set tokstart.

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

17 years agoVersion 5.21.
thurston [Thu, 10 May 2007 02:35:54 +0000 (02:35 +0000)]
Version 5.21.

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

17 years agoTypo fixes from Barry Arthur.
thurston [Thu, 10 May 2007 02:35:38 +0000 (02:35 +0000)]
Typo fixes from Barry Arthur.

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

17 years agoUpdated copyright date and added Java and Ruby to the list of supported host
thurston [Thu, 10 May 2007 01:53:08 +0000 (01:53 +0000)]
Updated copyright date and added Java and Ruby to the list of supported host
languages.

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

17 years agoFixed an inconsistency in the value of p following an error. In the C directly
thurston [Thu, 10 May 2007 01:37:23 +0000 (01:37 +0000)]
Fixed an inconsistency in the value of p following an error. In the C directly
executable code (rlgen-cd -G2) p was left at the character where the error
occurred, which is correct. In all other code generators it was left at the
following character. This was fixed. Now in all code generators p is left at
the character where the error occurred.

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

17 years agoAdded an item.
thurston [Thu, 10 May 2007 01:36:03 +0000 (01:36 +0000)]
Added an item.

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

17 years agoRenamed errintrans.rl -> erract6.rl.
thurston [Wed, 9 May 2007 23:11:32 +0000 (23:11 +0000)]
Renamed errintrans.rl -> erract6.rl.

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

17 years agoAdded new sections (import/export/variable) and expanded on running the
thurston [Wed, 9 May 2007 22:44:14 +0000 (22:44 +0000)]
Added new sections (import/export/variable) and expanded on running the
executables.

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

17 years agoNotes for version 5.21.
thurston [Wed, 9 May 2007 20:39:03 +0000 (20:39 +0000)]
Notes for version 5.21.

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

17 years agoThe alphabet type is now communicated from the frontend to the backend using a
thurston [Sun, 29 Apr 2007 23:25:14 +0000 (23:25 +0000)]
The alphabet type is now communicated from the frontend to the backend using a
one-word internal name instead of an array offset.

The Ruby host language types were just copied from Java. Reduced them to two
basic types: char and int, both signed.

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

17 years agoCasting from an array to a pointer is not legal d code.
thurston [Sun, 29 Apr 2007 20:01:03 +0000 (20:01 +0000)]
Casting from an array to a pointer is not legal d code.

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

17 years agoAdded Victor Hugo Borja.
thurston [Sun, 29 Apr 2007 20:00:24 +0000 (20:00 +0000)]
Added Victor Hugo Borja.

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

17 years agoThe version number is now included in the intermediate file. A error is emitted
thurston [Sun, 29 Apr 2007 16:20:28 +0000 (16:20 +0000)]
The version number is now included in the intermediate file. A error is emitted
if there is a mismatch.

Added an item and removed an item from the TODO.

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

17 years agoParse errors in the intermediate XML file now cause the backend to exit
thurston [Sun, 29 Apr 2007 16:03:30 +0000 (16:03 +0000)]
Parse errors in the intermediate XML file now cause the backend to exit
immediately. The recovery infrastructure isn't there and segfaults are likely.

When no input is given to the backend program, it should not print an error
message, it should just return a non-zero exit status. The assumption is that
the frontend printed an error.

All backend error functions now use gblErrorCount.

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

17 years agoThe "curstate" argument to the variable statement has been changed to "cs".
thurston [Sun, 29 Apr 2007 03:52:40 +0000 (03:52 +0000)]
The "curstate" argument to the variable statement has been changed to "cs".
Updated the tests.

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

17 years agoIn the variable statement changed the name "curstate" to "cs" (the default
thurston [Sun, 29 Apr 2007 03:50:47 +0000 (03:50 +0000)]
In the variable statement changed the name "curstate" to "cs" (the default
name used for the current state) and implemented the other names as their
defaults. Now all variables (p, pe, cs, top, stack, act, tokstart, tokend) can
be renamed.

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

17 years agoAdded a language-independent test case for the negative sense of conditions and
thurston [Sat, 28 Apr 2007 21:10:32 +0000 (21:10 +0000)]
Added a language-independent test case for the negative sense of conditions and
the necessary transformation support.

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

17 years agoCan now embed the negative sense of a condition.
thurston [Sat, 28 Apr 2007 20:51:42 +0000 (20:51 +0000)]
Can now embed the negative sense of a condition.

Added new condition embedding syntax:
    expr inwhen cond     - The transitions into the machine (starting transitions).
    expr outwhen cond    - The pending transitions out of the machine.

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

17 years agoFixed bugs in the binary searching for condition keys in both the Ruby and Java
thurston [Sat, 28 Apr 2007 20:08:28 +0000 (20:08 +0000)]
Fixed bugs in the binary searching for condition keys in both the Ruby and Java
code generation.

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

17 years agoWork on the state action embedding operator section.
thurston [Sat, 28 Apr 2007 03:50:42 +0000 (03:50 +0000)]
Work on the state action embedding operator section.

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

17 years agoA better solution to resolving the - ambiguity: force a shortest match of term.
thurston [Fri, 27 Apr 2007 17:23:08 +0000 (17:23 +0000)]
A better solution to resolving the - ambiguity: force a shortest match of term.

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

17 years agoFixed typos from from Josh Purinton. Made a few other improvements.
thurston [Wed, 25 Apr 2007 16:59:01 +0000 (16:59 +0000)]
Fixed typos from from Josh Purinton. Made a few other improvements.

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

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