2 .\" Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
5 .\" This file is part of Ragel.
7 .\" Ragel is free software; you can redistribute it and/or modify
8 .\" it under the terms of the GNU General Public License as published by
9 .\" the Free Software Foundation; either version 2 of the License, or
10 .\" (at your option) any later version.
12 .\" Ragel is distributed in the hope that it will be useful,
13 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .\" GNU General Public License for more details.
17 .\" You should have received a copy of the GNU General Public License
18 .\" along with Ragel; if not, write to the Free Software
19 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 .\" Process this file with
22 .\" groff -man -Tascii rlgen-java.1
24 .TH RLGEN-JAVA 1 "@PUBDATE@" "Ragel @VERSION@" "Ragel State Machine Compiler"
26 rlgen-java \- code generator for Ragel State Machine Compiler
32 This is a backend component of Ragel. This program accepts a machine
33 compiled by the frontend program ragel(1) and generates Java code.
35 Use it with the frontend option -J.
38 .BR \-h ", " \-H ", " \-? ", " \-\-help
39 Display help and exit.
42 Display version information and exit.
45 Write output to file. If -o is not given, a default file name is chosen by
46 replacing the suffix of the input. For source files ending in .rh the suffix .h
47 is used. For all other source files a suffix based on the output language
48 is used (.c, .cpp, .m, .dot)
51 Generate a table driven FSM. This is the default code style. The table driven
52 FSM represents the state machine as static data. There are tables of states,
53 transitions, indicies and actions. The current state is stored in a variable.
54 The execution is a loop that looks that given the current state and current
55 character to process looks up the transition to take using a binary search,
56 executes any actions and moves to the target state. In general, the table
57 driven FSM produces a smaller binary and requires a less expensive host language
58 compile but results in slower running code. The table driven FSM is suitable
61 Ragel was written by Adrian Thurston <thurston@complang.org>. Contributions
62 to Java code generation by Colin Fleming.
71 Homepage: http://www.cs.queensu.ca/~thurston/ragel/