summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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
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
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
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
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
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
thurston [Sun, 4 Feb 2007 04:40:40 +0000 (04:40 +0000)]
Disabled the setting of state ids in the backend to go live with the equivalent
work done in the frontend.
git-svn-id: http://svn.complang.org/ragel/trunk@74
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 4 Feb 2007 03:44:20 +0000 (03:44 +0000)]
Complete transition list building must be avoided for the error state.
git-svn-id: http://svn.complang.org/ragel/trunk@73
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 4 Feb 2007 03:15:18 +0000 (03:15 +0000)]
The frontend is now responsible for creating the error state, if needed. The
error state id is passed using the <error_state> tag.
git-svn-id: http://svn.complang.org/ragel/trunk@72
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 4 Feb 2007 03:08:34 +0000 (03:08 +0000)]
Java and Ruby code generators don't need to switch on the language to choose a
default extension.
git-svn-id: http://svn.complang.org/ragel/trunk@71
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 3 Feb 2007 21:48:19 +0000 (21:48 +0000)]
Fixed error from last commit: The frontend should emit states with numbers
starting at 0. The state numbers in the XML file are now read and used to set
the state id. They are currently overwritten, but this should change when the
frontend is able to decide if an error state is needed.
git-svn-id: http://svn.complang.org/ragel/trunk@70
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 3 Feb 2007 21:29:15 +0000 (21:29 +0000)]
The frontend now does a depth first ordering of states and then sorts states
based on final state status before assigning ids.
git-svn-id: http://svn.complang.org/ragel/trunk@69
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 3 Feb 2007 01:47:50 +0000 (01:47 +0000)]
Enabled rlgen-ruby in the top-level makefile. Merged the remaining parts of the
patch from Victor.
git-svn-id: http://svn.complang.org/ragel/trunk@68
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 3 Feb 2007 01:14:38 +0000 (01:14 +0000)]
Merged in Ruby code generator from Victor Hugo Borja. Started with a copy of
the Java code generator written in the framework, then merged in the code
generation that Victor wrote for the old framework and adapted it. This
compiles. Has not yet been tested.
git-svn-id: http://svn.complang.org/ragel/trunk@67
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 3 Feb 2007 00:06:44 +0000 (00:06 +0000)]
Updated version information in the both backend programs. Removed outputFormat
and codeStyle options from the java code generator.
git-svn-id: http://svn.complang.org/ragel/trunk@66
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 23:54:57 +0000 (23:54 +0000)]
CR characters need to be treated as whitespace.
git-svn-id: http://svn.complang.org/ragel/trunk@65
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 23:30:45 +0000 (23:30 +0000)]
Merged the FsmCodeGen, TabCodeGen and JavaTabCodeGen classes. Updated the
runtests script to use the new filename for the java code generator.
git-svn-id: http://svn.complang.org/ragel/trunk@64
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 21:03:29 +0000 (21:03 +0000)]
Shortened the name of the Java code generation executable.
git-svn-id: http://svn.complang.org/ragel/trunk@63
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 20:30:57 +0000 (20:30 +0000)]
Updated svn:ignore in common, now that objects and an archive are created.
git-svn-id: http://svn.complang.org/ragel/trunk@62
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 19:07:29 +0000 (19:07 +0000)]
Improvements to the examples build following the merge.
git-svn-id: http://svn.complang.org/ragel/trunk@61
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 18:52:26 +0000 (18:52 +0000)]
Removed last example directory.
git-svn-id: http://svn.complang.org/ragel/trunk@60
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 18:51:01 +0000 (18:51 +0000)]
Eliminated per-example private directories.
git-svn-id: http://svn.complang.org/ragel/trunk@59
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 18:34:52 +0000 (18:34 +0000)]
The common code is now a library (no more #include "common.cpp"). Improvements
to the recurisve calls to make. Now using phony targets instead of shell script
code which iterates over a list of items.
git-svn-id: http://svn.complang.org/ragel/trunk@58
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 17:12:27 +0000 (17:12 +0000)]
Removed Java code generation from rlcodegen. Added the cd javagen && make to
the top level makefile (not covered by SUBDIRS variable).
git-svn-id: http://svn.complang.org/ragel/trunk@57
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 07:02:38 +0000 (07:02 +0000)]
Updated SUBDIRS in the top-level makefile and the clean target in javagen.
git-svn-id: http://svn.complang.org/ragel/trunk@56
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 06:56:37 +0000 (06:56 +0000)]
Removed inactive code originating from the split out of rlcodegen.
git-svn-id: http://svn.complang.org/ragel/trunk@55
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 06:48:40 +0000 (06:48 +0000)]
Applied java data array encoding patch from Colin Fleming. Only works with byte
and short alphabet types. The transformation to java in the test suite sets the
byte alphabet type (default is char, which is unimplemented).
git-svn-id: http://svn.complang.org/ragel/trunk@54
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 05:59:48 +0000 (05:59 +0000)]
Java code generation split out into its own executable. Still needs to be
removed from rlcodegen.
git-svn-id: http://svn.complang.org/ragel/trunk@53
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 04:32:40 +0000 (04:32 +0000)]
GraphvizDotGen is now a subclass of CodeGenData.
git-svn-id: http://svn.complang.org/ragel/trunk@52
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 03:50:18 +0000 (03:50 +0000)]
Split the XML parsing, reduced fsm, and the code generation data structures out
of rlcodegen.
git-svn-id: http://svn.complang.org/ragel/trunk@51
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 01:14:37 +0000 (01:14 +0000)]
More separation between the XML reading and data collection classes, and the
code generation classes. The rlcodegen.h include was removed from the files
which will go into the redfsm.a library.
git-svn-id: http://svn.complang.org/ragel/trunk@50
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 2 Feb 2007 01:07:49 +0000 (01:07 +0000)]
Added an item. Resulted from discussion with MenTaLguY.
git-svn-id: http://svn.complang.org/ragel/trunk@49
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 1 Feb 2007 20:41:15 +0000 (20:41 +0000)]
Improvements to the handling of write statements in the backend.
git-svn-id: http://svn.complang.org/ragel/trunk@48
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 1 Feb 2007 05:46:06 +0000 (05:46 +0000)]
Machine preparation and code generation is now handled by two virtual functions
in FsmCodeGen: finishRagelDef and writeStatement. All interpretation of the
write statement will happen there.
git-svn-id: http://svn.complang.org/ragel/trunk@47
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 1 Feb 2007 02:42:53 +0000 (02:42 +0000)]
Write statements are no longer in ragel_def elements. They appear on their own
next to host elements. The ragel_def tag is now used exclusively for defining a
machine.
git-svn-id: http://svn.complang.org/ragel/trunk@46
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 1 Feb 2007 00:02:59 +0000 (00:02 +0000)]
Moved code dependent on the output type and code style from CodeGenData to
FsmCodeGen.
git-svn-id: http://svn.complang.org/ragel/trunk@45
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Wed, 31 Jan 2007 21:40:00 +0000 (21:40 +0000)]
Eliminated the pointer from the subclass FsmCodeGen up to the superclass
CodeGenData.
git-svn-id: http://svn.complang.org/ragel/trunk@44
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Wed, 31 Jan 2007 21:17:20 +0000 (21:17 +0000)]
This transformation makes CodeGenData a superclass of FsmCodeGen. The existing
pointer structure still works fine. They just now point to superclass and
subclass of one another. This can be phased out with virtual functions and
implicit superclass member class references.
git-svn-id: http://svn.complang.org/ragel/trunk@43
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Wed, 31 Jan 2007 20:41:10 +0000 (20:41 +0000)]
More organizational changes. The codeGen structure is now created in the
CodeGenData constructor.
git-svn-id: http://svn.complang.org/ragel/trunk@42
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 21:49:32 +0000 (21:49 +0000)]
Eliminated the cgd global.
git-svn-id: http://svn.complang.org/ragel/trunk@41
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 21:16:42 +0000 (21:16 +0000)]
Added an item.
git-svn-id: http://svn.complang.org/ragel/trunk@40
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 21:13:05 +0000 (21:13 +0000)]
Did some more reorganization in support of separating out a redfsm.a library
from code generation. The makeCodeGen function is now a callback which will be
executed by the redfsm.a library and implemented by the code generator
executable.
git-svn-id: http://svn.complang.org/ragel/trunk@39
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 18:52:31 +0000 (18:52 +0000)]
Moved the value limits which are collected during machine analysis time from
CodeGenData to RedFsm.
git-svn-id: http://svn.complang.org/ragel/trunk@38
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 17:42:18 +0000 (17:42 +0000)]
Added item.
git-svn-id: http://svn.complang.org/ragel/trunk@37
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 06:18:35 +0000 (06:18 +0000)]
The spelling of Erich's name has changed. Now updated throughout.
git-svn-id: http://svn.complang.org/ragel/trunk@36
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 06:05:28 +0000 (06:05 +0000)]
Moved more analysis code from FsmCodeGen into CodeGenData. Eliminated the
fsmName variable from FsmCodeGen.
git-svn-id: http://svn.complang.org/ragel/trunk@35
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 05:20:52 +0000 (05:20 +0000)]
Moved analysis code from FsmCodeGen into CodeGenData.
git-svn-id: http://svn.complang.org/ragel/trunk@34
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 30 Jan 2007 03:01:49 +0000 (03:01 +0000)]
Removed output-related globals. Fixed and error in splitcodegen which tested
the wrong output_filter for open failure.
git-svn-id: http://svn.complang.org/ragel/trunk@33
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 29 Jan 2007 17:30:47 +0000 (17:30 +0000)]
Added an item.
git-svn-id: http://svn.complang.org/ragel/trunk@32
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 29 Jan 2007 01:47:34 +0000 (01:47 +0000)]
Updates to the scanner section. Gave the semantic condition figures bounding
boxes.
git-svn-id: http://svn.complang.org/ragel/trunk@31
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 29 Jan 2007 00:30:42 +0000 (00:30 +0000)]
Minor update to CREDITS file.
git-svn-id: http://svn.complang.org/ragel/trunk@30
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 29 Jan 2007 00:08:53 +0000 (00:08 +0000)]
This can go.
git-svn-id: http://svn.complang.org/ragel/trunk@29
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 29 Jan 2007 00:08:19 +0000 (00:08 +0000)]
More content added. Did a smallish reorganization. Needs a lot of cleanup
still.
git-svn-id: http://svn.complang.org/ragel/trunk@28
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 28 Jan 2007 22:26:05 +0000 (22:26 +0000)]
Updates to the guarded operator section.
git-svn-id: http://svn.complang.org/ragel/trunk@27
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 28 Jan 2007 19:38:43 +0000 (19:38 +0000)]
Expanded the Introductions to chapters 3 and 4 (actions and controlling
non-determinism).
git-svn-id: http://svn.complang.org/ragel/trunk@26
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 28 Jan 2007 17:51:58 +0000 (17:51 +0000)]
added an item
git-svn-id: http://svn.complang.org/ragel/trunk@25
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 28 Jan 2007 04:57:03 +0000 (04:57 +0000)]
Documented 5.17 release. Updated the homepage in various places. Updated the
README.
git-svn-id: http://svn.complang.org/ragel/trunk@23
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 27 Jan 2007 22:24:35 +0000 (22:24 +0000)]
Some rewording of things in the Introduction chapter.
git-svn-id: http://svn.complang.org/ragel/trunk@22
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 27 Jan 2007 19:32:24 +0000 (19:32 +0000)]
Added bounding boxes to the figures that had text cut off. Reduced the line
weight in the figures describing the operations.
git-svn-id: http://svn.complang.org/ragel/trunk@21
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 27 Jan 2007 18:20:30 +0000 (18:20 +0000)]
Adjusted formatting: 11pt font, margins, don't use titlesec or pslatex.
git-svn-id: http://svn.complang.org/ragel/trunk@20
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 27 Jan 2007 18:05:18 +0000 (18:05 +0000)]
Finished replacement of manually drawn figures with graphviz drawn figures.
These need bounding box fixes at the very least.
git-svn-id: http://svn.complang.org/ragel/trunk@19
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sat, 27 Jan 2007 06:15:46 +0000 (06:15 +0000)]
Began replacement of manually drawn figures with graphviz drawn figures.
git-svn-id: http://svn.complang.org/ragel/trunk@18
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 26 Jan 2007 21:29:18 +0000 (21:29 +0000)]
Fixed an unintentional concatenation of two patterns due to a missing
semi-colon. The error was not covered by the (meagre) test input.
git-svn-id: http://svn.complang.org/ragel/trunk@17
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 26 Jan 2007 17:55:25 +0000 (17:55 +0000)]
added an item
git-svn-id: http://svn.complang.org/ragel/trunk@16
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 26 Jan 2007 01:50:08 +0000 (01:50 +0000)]
The range keyword has been disabled for the parser rewrite of 5.17 so that the
ragel language matches 5.16 exactly. Can revert these changes to the test to
make diffing against the 5.16 output easier. Will enable again in the future.
git-svn-id: http://svn.complang.org/ragel/trunk@15
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Fri, 26 Jan 2007 01:42:43 +0000 (01:42 +0000)]
Cleanup and removal of globals.
git-svn-id: http://svn.complang.org/ragel/trunk@14
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 25 Jan 2007 07:00:05 +0000 (07:00 +0000)]
Converted to single-line parser specifications where appropriate.
git-svn-id: http://svn.complang.org/ragel/trunk@13
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 25 Jan 2007 02:40:53 +0000 (02:40 +0000)]
Switched to the latest kelbt syntax. Like Ragel, this syntax is based on write
statements embedded in the host code which explicitly specify which portions of
the machine to write out.
git-svn-id: http://svn.complang.org/ragel/trunk@12
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Thu, 25 Jan 2007 02:36:29 +0000 (02:36 +0000)]
Improved the sync patterns.
git-svn-id: http://svn.complang.org/ragel/trunk@11
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Wed, 24 Jan 2007 05:57:31 +0000 (05:57 +0000)]
Enabled the location printing in the warning function.
git-svn-id: http://svn.complang.org/ragel/trunk@10
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Wed, 24 Jan 2007 05:22:28 +0000 (05:22 +0000)]
A fix from Matt Mower.
git-svn-id: http://svn.complang.org/ragel/trunk@9
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Tue, 23 Jan 2007 04:42:30 +0000 (04:42 +0000)]
Some cleanup of comments and error messages.
git-svn-id: http://svn.complang.org/ragel/trunk@8
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 22 Jan 2007 19:22:01 +0000 (19:22 +0000)]
Removed the old flex and bison files. Fixed a bug in regexes and OR literals:
\0 was not properly recognized. Improved error reporting.
git-svn-id: http://svn.complang.org/ragel/trunk@7
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 22 Jan 2007 17:14:08 +0000 (17:14 +0000)]
The range keyword was not functional in 5.16. Wait for after 5.17 to add it.
git-svn-id: http://svn.complang.org/ragel/trunk@6
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 22 Jan 2007 04:46:37 +0000 (04:46 +0000)]
The configure script now checks for ragel and kelbt instead of flex and bison.
Cleaned up common/Makefile.in.
git-svn-id: http://svn.complang.org/ragel/trunk@5
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Mon, 22 Jan 2007 04:32:02 +0000 (04:32 +0000)]
Cleanup and improvements to error messages.
git-svn-id: http://svn.complang.org/ragel/trunk@4
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 21 Jan 2007 23:02:53 +0000 (23:02 +0000)]
Imported svn:ignore properties from private repository.
git-svn-id: http://svn.complang.org/ragel/trunk@3
052ea7fc-9027-0410-9066-
f65837a77df0
thurston [Sun, 21 Jan 2007 22:58:22 +0000 (22:58 +0000)]
Import from my private repository. Snapshot after version 5.16, immediately
following the rewrite of the parsers. Repository revision number 3961.
git-svn-id: http://svn.complang.org/ragel/trunk@2
052ea7fc-9027-0410-9066-
f65837a77df0