1
2
3RLGEN-JAVA(1)            Ragel State Machine Compiler            RLGEN-JAVA(1)
4
5
6

NAME

8       rlgen-java - code generator for Ragel State Machine Compiler
9

SYNOPSIS

11       rlgen-java [options] file
12

DESCRIPTION

14       This  is  a  backend component of Ragel. This program accepts a machine
15       compiled by the frontend program ragel(1) and generates Java code.
16
17       Use it with the frontend option -J.
18

OPTIONS

20       -h, -H, -?, --help
21              Display help and exit.
22
23       -v     Display version information and exit.
24
25       -o  file
26              Write output to file. If -o is not given, a default file name is
27              chosen  by  replacing  the suffix of the input. For source files
28              ending in .rh the suffix .h is used. For all other source  files
29              a  suffix  based  on  the output language is used (.c, .cpp, .m,
30              .dot)
31
32       -T0    Generate a table driven FSM. This is  the  default  code  style.
33              The  table  driven  FSM  represents  the state machine as static
34              data. There are tables  of  states,  transitions,  indicies  and
35              actions.  The current state is stored in a variable.  The execu‐
36              tion is a loop that looks that given the current state and  cur‐
37              rent  character to process looks up the transition to take using
38              a binary search, executes any actions and moves  to  the  target
39              state.  In  general,  the  table  driven  FSM produces a smaller
40              binary and requires a less expensive host language  compile  but
41              results in slower running code. The table driven FSM is suitable
42              for any FSM.
43

CREDITS

45       Ragel was written by Adrian Thurston <thurston@cs.queensu.ca>.  Contri‐
46       butions to Java code generation by Colin Fleming.
47

SEE ALSO

49       ragel(1), rlgen-cd(1), rlgen-ruby(1), rlgen-dot(1), re2c(1), flex(1)
50
51       Homepage: http://www.cs.queensu.ca/~thurston/ragel/
52
53
54
55Ragel 6.2                         March 2008                     RLGEN-JAVA(1)
Impressum