summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWill Estes <westes575@gmail.com>2012-08-07 12:18:08 -0400
committerWill Estes <westes575@gmail.com>2012-08-07 15:56:44 -0400
commitec676fce008138b222d072de28fb05e1dfd945fb (patch)
tree1d45f3a3df39df4647ec4487f426f8f6b564373a /options.c
parentc1a633de7c2ee2fb450b24ec46e9c4390f3c69ea (diff)
downloadflex-git-bug-2172046.tar.gz
reorganize flex skeleton and m4 processingbug-2172046
Diffstat (limited to 'options.c')
-rw-r--r--options.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/options.c b/options.c
index c673173..db6ddd6 100644
--- a/options.c
+++ b/options.c
@@ -93,10 +93,10 @@ optspec_t flexopts[] = {
, /* Suppress default rule to ECHO unmatched text. */
{"--default", OPT_DEFAULT, 0}
,
- {"-c", OPT_DONOTHING, 0}
- , /* For POSIX lex compatibility. */
- {"-n", OPT_DONOTHING, 0}
- , /* For POSIX lex compatibility. */
+ {"-c", OPT_C_SCANNER, 0}
+ ,
+ {"-n", OPT_NO_VERBOSE, 0}
+ ,
{"--ecs", OPT_ECS, 0}
, /* Construct equivalence classes. */
{"--noecs", OPT_NO_ECS, 0}
@@ -117,6 +117,10 @@ optspec_t flexopts[] = {
,
{"--help", OPT_HELP, 0}
, /* Produce this help message. */
+ {"-Y PATH", OPT_INCLUDE_PATH, 0}
+ , /* Same as --include; Sun's lex uses -Y for this. */
+ {"--include=PATH", OPT_INCLUDE_PATH, 0}
+ , /* Specifiy the include path for skeleton files */
{"-I", OPT_INTERACTIVE, 0}
,
{"--interactive", OPT_INTERACTIVE, 0}
@@ -139,12 +143,16 @@ optspec_t flexopts[] = {
, /* use built-in main() function. */
{"--nomain", OPT_NO_MAIN, 0}
,
+ {"--m4outfile=FILE", OPT_M4OUTFILE, 0}
+ , /* Write intermediate M4 to FILE */
{"--meta-ecs", OPT_META_ECS, 0}
, /* Construct meta-equivalence classes. */
{"--nometa-ecs", OPT_NO_META_ECS, 0}
,
{"--never-interactive", OPT_NEVER_INTERACTIVE, 0}
,
+ {"--options=OPTIONS", OPT_OPTION_LIST, 0}
+ ,
{"-o FILE", OPT_OUTFILE, 0}
,
{"--outfile=FILE", OPT_OUTFILE, 0}
@@ -273,7 +281,12 @@ optspec_t flexopts[] = {
,
{"--noyyset_lloc", OPT_NO_YYSET_LLOC, 0}
,
-
+#if 0
+ {"--include-header", OPT_INCLUDE_HEADER, 0}
+ ,
+ {"--yynamespace=NAME", OPT_YYNAMESPACE, 0}
+ ,
+#endif
{0, 0, 0} /* required final NULL entry. */
};