Alien-flex
view release on metacpan or search on metacpan
patch/flex-2.6.4.diff view on Meta::CPAN
+
+** scanner
+
+*** Some memory leaks have been fixed.
+
+*** A long standing bug that effected expressions of the form c{i,j}
+ where 'c' is a character and {i,j} describes the number of times
+ to match against 'c' when case sensitivity was turned on has been
+ fixed.
+
+*** New option: --backup-file allows setting the name of the file
+ written containing backing up information. Useful if you need
+ backing up information from multiple scanners in the same
+ directory.
+
+*** flex emits correct line number directives when line numbers refer
+ to the file containing the line number directives.
+
+*** The options {no,}yy{get,set}_column are now supported.
+
+** test
patch/flex-2.6.4.diff view on Meta::CPAN
+msgid "%d backing up (non-accepting) states.\n"
+msgstr "ÑезеÑвне копÑÑÐ²Ð°Ð½Ð½Ñ %d (недопÑÑÑимиÑ
) ÑÑанÑв.\n"
+
+#: src/main.c:742
+#, c-format
+msgid "Compressed tables always back up.\n"
+msgstr "СÑвоÑÐµÐ½Ð½Ñ ÑезеÑвниÑ
копÑй ÑÑиÑлиÑ
ÑаблиÑÑ Ð²Ð¸ÐºÐ¾Ð½ÑÑÑÑÑÑ Ð·Ð°Ð²Ð¶Ð´Ð¸.\n"
+
+#: src/main.c:745
+#, c-format
+msgid "error writing backup file %s"
+msgstr "помилка запиÑÑ ÑезеÑÐ²Ð½Ð¾Ñ ÐºÐ¾Ð¿ÑÑ Ñайла %s"
+
+#: src/main.c:749
+#, c-format
+msgid "error closing backup file %s"
+msgstr "помилка закÑиÑÑÑ ÑезеÑÐ²Ð½Ð¾Ñ ÐºÐ¾Ð¿ÑÑ Ñайла %s"
+
+#: src/main.c:754
+#, c-format
+msgid "%s version %s usage statistics:\n"
+msgstr "ÑÑаÑиÑÑика викоÑиÑÑÐ°Ð½Ð½Ñ %s веÑÑÑÑ %s:\n"
+
+#: src/main.c:757
+#, c-format
+msgid " scanner options: -"
patch/flex-2.6.4.diff view on Meta::CPAN
+" -Cf do not compress tables; use -f representation\n"
+" -CF do not compress tables; use -F representation\n"
+" -Cm, --meta-ecs construct meta-equivalence classes\n"
+" -Cr, --read use read() instead of stdio for scanner input\n"
+" -f, --full generate fast, large scanner. Same as -Cfr\n"
+" -F, --fast use alternate table representation. Same as -CFr\n"
+" -Cem default compression (same as --ecs --meta-ecs)\n"
+"\n"
+"Debugging:\n"
+" -d, --debug enable debug mode in scanner\n"
+" -b, --backup write backing-up information to %s\n"
+" -p, --perf-report write performance report to stderr\n"
+" -s, --nodefault suppress default rule to ECHO unmatched text\n"
+" -T, --trace %s should run in trace mode\n"
+" -w, --nowarn do not generate warnings\n"
+" -v, --verbose write summary of scanner statistics to stdout\n"
+" --hex use hexadecimal numbers instead of octal in debug "
+"outputs\n"
+"\n"
+"Files:\n"
+" -o, --outfile=FILE specify output filename\n"
patch/flex-2.6.4.diff view on Meta::CPAN
+" -Cr, --read викоÑиÑÑаÑи read() замÑÑÑÑ stdio Ñк\n"
+" вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ ÑканеÑа\n"
+" -f, --full ÑÑвоÑиÑи Ñвидкий, великий ÑканеÑ. Теж Ñаме, Ñо -Cfr\n"
+" -F, --fast заÑÑоÑÑваÑи алÑÑеÑнаÑивний Ð¾Ð¿Ð¸Ñ ÑаблиÑÑ.\n"
+" Теж Ñаме, Ñо -CFr\n"
+" -Cem ÑÑепÑÐ½Ñ ÑÑиÑÐ½ÐµÐ½Ð½Ñ Ð·Ð° замовÑÑваннÑм\n"
+" (Ñеж Ñаме, Ñо --ecs --meta-ecs)\n"
+"\n"
+"ÐалагодженнÑ:\n"
+" -d, --debug ÑвÑмкнÑÑи Ñежим Ð½Ð°Ð»Ð°Ð³Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ ÑканеÑа\n"
+" -b, --backup запиÑаÑи ÑезеÑÐ²Ð½Ñ ÐºÐ¾Ð¿ÑÑ Ð´Ð¾ %s\n"
+" -p, --perf-report запиÑаÑи звÑÑ Ð¿Ñо пÑодÑкÑивнÑÑÑÑ Ð´Ð¾ stderr\n"
+" -s, --nodefault пÑипиниÑи вивÑд ÑекÑÑÑ (ECHO до stdout)\n"
+" Ñо не збÑгаÑÑÑÑÑ Ð· жодним пÑавилом\n"
+" -T, --trace %s повинен запÑÑкаÑиÑÑ Ñ ÑÐµÐ¶Ð¸Ð¼Ñ ÑÑаÑÑваннÑ\n"
+" -w, --nowarn не видаваÑи попеÑедженÑ\n"
+" -v, --verbose запиÑаÑи пÑдÑÑÐ¼ÐºÐ¾Ð²Ñ ÑÑаÑиÑÑÐ¸ÐºÑ ÑканеÑа до stdout\n"
+"\n"
+"Файли:\n"
+" -o, --outfile=ФÐÐРвказаÑи Ñм'Ñ Ð²Ð¸Ñ
Ñдного Ñайла\n"
+" -S, --skel=ФÐÐРвказаÑи Ñайл каÑкаÑÑ\n"
patch/flex-2.6.4.diff view on Meta::CPAN
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lfl
diff --git a/src/main.c b/src/main.c
index e5eac44..a4047d7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -117,7 +117,7 @@ struct yytbl_writer tableswr;
char *program_name = "flex";
static const char outfile_template[] = "lex.%s.%s";
-static const char backing_name[] = "lex.backup";
+static const char *backing_name = "lex.backup";
static const char tablesfile_template[] = "lex.%s.tables";
/* From scan.l */
@@ -197,7 +197,7 @@ int flex_main (int argc, char *argv[])
/* Wrapper around flex_main, so flex_main can be built as a library. */
int main (int argc, char *argv[])
{
-#if ENABLE_NLS
+#if defined(ENABLE_NLS) && ENABLE_NLS
#if HAVE_LOCALE_H
patch/flex-2.6.4.diff view on Meta::CPAN
+ break;
case OPT_NO_YYGET_IN:
//buf_strdefine (&userdef_buf, "YY_NO_GET_IN", "1");
buf_m4_define( &m4defs_buf, "M4_YY_NO_GET_IN",0);
@@ -1817,7 +1832,8 @@ void usage (void)
" -t, --stdout write scanner on stdout instead of %s\n"
" --yyclass=NAME name of C++ class\n"
" --header-file=FILE create a C header file in addition to the scanner\n"
- " --tables-file[=FILE] write tables to FILE\n" "\n"
+ " --tables-file[=FILE] write tables to FILE\n"
+ " --backup-file=FILE write backing-up information to FILE\n" "\n"
"Scanner behavior:\n"
" -7, --7bit generate 7-bit scanner\n"
" -8, --8bit generate 8-bit scanner\n"
@@ -1844,6 +1860,6 @@ void usage (void)
" -?\n"
" -h, --help produce this help message\n"
" -V, --version report %s version\n"),
- backing_name, program_name, outfile_path, program_name);
+ backing_name, "flex", outfile_path, "flex");
patch/flex-2.6.4.diff view on Meta::CPAN
+
finalst[first] = orend;
return first;
}
diff --git a/src/options.c b/src/options.c
index 366bc2e..e98159c 100644
--- a/src/options.c
+++ b/src/options.c
@@ -62,6 +62,8 @@ optspec_t flexopts[] = {
,
{"--backup", OPT_BACKUP, 0}
, /* Generate backing-up information to lex.backup. */
+ {"--backup-file=FILE", OPT_BACKUP_FILE, 0}
+ , /* Generate backing-up information to FILE. */
{"-B", OPT_BATCH, 0}
,
{"--batch", OPT_BATCH, 0}
@@ -255,6 +257,10 @@ optspec_t flexopts[] = {
,
{"--noyyset_lineno", OPT_NO_YYSET_LINENO, 0}
,
+ {"--noyyget_column", OPT_NO_YYGET_COLUMN, 0}
+ ,
( run in 0.717 second using v1.01-cache-2.11-cpan-49f99fa48dc )