Editing of chapter three. Removed the main label and reduced the state size in
[ragel.git] / rlgen-ruby / rlgen-ruby.h
blob7b5c21cc87fd2436f4fc0e97c7fbb51dbe0459d4
1 /*
2 * 2007 Victor Hugo Borja <vic@rubyforge.org>
3 * Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
4 */
6 /* This file is part of Ragel.
8 * Ragel is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Ragel is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Ragel; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef _RLGEN_RUBY_H
24 #define _RLGEN_RUBY_H
26 #include <iostream>
27 #include "config.h"
29 #define PROGNAME "rlgen-ruby"
31 /* Target implementation */
32 enum RubyImplEnum
34 MRI,
35 Rubinius
38 extern RubyImplEnum rubyImpl;
40 /* Target output style. */
41 enum CodeStyleEnum
43 GenTables,
44 GenFTables,
45 GenFlat,
46 GenFFlat,
47 GenGoto,
48 GenFGoto,
49 GenIpGoto,
50 GenSplit
54 extern CodeStyleEnum codeStyle;
56 extern int gblErrorCount;
57 extern char machineMain[];
59 /* Options. */
60 extern int numSplitPartitions;
61 extern bool noLineDirectives;
63 std::ostream &error();
66 * Local Variables:
67 * mode: c++
68 * indent-tabs-mode: 1
69 * c-file-style: "bsd"
70 * End:
73 #endif /* _RLGEN_RUBY_H */