diff options
author | Adrian Thurston <thurston@complang.org> | 2014-11-25 15:37:46 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-11-25 15:37:46 -0500 |
commit | 2915963b34bd3a340bac8eb6c2bc8259c4fe9dca (patch) | |
tree | 7b0d775b1ee6c142a8a273fbba2ff8d7c545590e /ragel | |
parent | 1fbb41f10b670197493302c16065c2063ff01764 (diff) | |
download | ragel-2915963b34bd3a340bac8eb6c2bc8259c4fe9dca.tar.gz |
added --string-tables option (not connected to anything yet)
Diffstat (limited to 'ragel')
-rw-r--r-- | ragel/main.cpp | 5 | ||||
-rw-r--r-- | ragel/ragel.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ragel/main.cpp b/ragel/main.cpp index f5fbd7b9..ac923f19 100644 --- a/ragel/main.cpp +++ b/ragel/main.cpp @@ -91,6 +91,9 @@ bool displayPrintables = false; /* Target ruby impl */ RubyImplEnum rubyImpl = MRI; +/* Use strings to initialize static tables. */ +bool stringTables = false; + /* Print a summary of the options. */ void usage() { @@ -369,6 +372,8 @@ void processArgs( int argc, const char **argv, InputData &id ) } else if ( strcmp( arg, "rbx" ) == 0 ) rubyImpl = Rubinius; + else if ( strcmp( arg, "string-tables" ) == 0 ) + stringTables = true; else { error() << "--" << pc.paramArg << " is an invalid argument" << endl; diff --git a/ragel/ragel.h b/ragel/ragel.h index 2f4d6ffb..f8d0b3bb 100644 --- a/ragel/ragel.h +++ b/ragel/ragel.h @@ -116,5 +116,6 @@ extern CodeStyle codeStyle; extern int numSplitPartitions; extern bool noLineDirectives; +extern bool stringTables; #endif |