]> granicus.if.org Git - re2c/commitdiff
- Made two pass mode the default and dropped -t
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 16 Apr 2006 22:34:15 +0000 (22:34 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 16 Apr 2006 22:34:15 +0000 (22:34 +0000)
- Added -1 to force single pass generation

27 files changed:
CHANGELOG
bootstrap/scanner.cc
globals.h
htdocs/index.html
htdocs/manual.html
main.cc
re2c.1.in
scanner.re
test/error1.c
test/error10.c
test/error11.c
test/error12.c
test/error13.1.c [new file with mode: 0755]
test/error13.1.re [moved from test/error13.t.re with 100% similarity]
test/error13.c
test/error14.1.c [moved from test/error13.t.c with 68% similarity]
test/error14.1.re [moved from test/error14.t.re with 100% similarity]
test/error14.c
test/error14.t.c [deleted file]
test/error2.c
test/error3.c
test/error4.c
test/error5.c
test/error6.c
test/error7.c
test/error8.c
test/error9.c

index 207975c46365e2ecd514d4541dd1f4cc1dd429cb..9cc9e4100298d3bf654f66f112cc0b3476d4a679 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,7 +1,7 @@
 Version 0.10.2 (2006-??-??)
 ---------------------------
 - Changed to generate YYMARKER only when needed or in single pass mode.
-- Added -t switch to force two pass generation.
+- Added -1 switch to force single pass generation and make two pass the default.
 - Fixed -i switch.
 - Added configuration 'yyfill:enable' to allow suppression of YYFILL() blocks.
 - Added tutorial like lessons to re2c.
index 2e180c99d9efa0eda35bf9fba7380e578203b58c..db242b72d0c6359043831c03cd3eb831fd213be5 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.10.2.dev on Sun Apr 16 13:38:11 2006 */
+/* Generated by re2c 0.10.2.dev on Sun Apr 16 18:19:25 2006 */
 #line 1 "scanner.re"
 /* $Id$ */
 #include <stdlib.h>
@@ -218,7 +218,7 @@ yy21:
        ++YYCURSOR;
 #line 110 "scanner.re"
        {
-                                       if (bUsedYYMaxFill && bLastPass && !tFlag) {
+                                       if (bUsedYYMaxFill && bSinglePass) {
                                                fatal("found scanner block after YYMAXFILL declaration");
                                        }
                                        out.write((const char*)(tok), (const char*)(&cursor[-7]) - (const char*)(tok));
index 8c74f719edac5d3d93f950afd7bb60ff0b0e7fe2..7cff108a0e6e8dcba93203578f478477077eb54c 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -21,8 +21,8 @@ extern bool fFlag;
 extern bool iFlag;
 extern bool sFlag;
 extern bool wFlag;
-extern bool tFlag;
 
+extern bool bSinglePass;
 extern bool bLastPass;
 
 extern bool bUsedYYAccept;
index 96687a9ea80b4f26fd2737dfa1c539df8947e723..8fb8c03fc3aefd653ab7956f9b7e96b6d517baad 100755 (executable)
@@ -79,7 +79,7 @@ provide re2c packages.</li>
 <h2>2006-??-??: 0.10.2</h2>
 <ul>
 <li>Changed to generate YYMARKER only when needed or in single pass mode.</li>
-<li>Added -t switch to force two pass generation.</li>
+<li>Added -1 switch to force single pass generation and make two pass the default.</li>
 <li>Fixed -i switch.</li>
 <li>Added configuration 'yyfill:enable' to allow suppression of YYFILL() blocks.</li>
 <li>Added tutorial like lessons to re2c.</li>
index e56d78383f61511c966e96b3686b99c9cca7e490..af0655dfafe590a9249a703bf0855f48d81213ca 100755 (executable)
@@ -15,7 +15,7 @@ Updated: 8 April 2006<br />
 <p>re2c - convert regular expressions to C/C++</p>
 <a name="lbAC" id="lbAC">&nbsp;</a>
 <h2>SYNOPSIS</h2>
-<p><b>re2c</b> [<b>-bdefhistvVw</b>] [<b>-o output</b>] file</p>
+<p><b>re2c</b> [<b>-bdefhisvVw1</b>] [<b>-o output</b>] file</p>
 <a name="lbAD" id="lbAD">&nbsp;</a>
 <h2>DESCRIPTION</h2>
 <p><b>re2c</b> is a preprocessor that generates C-based recognizers from
@@ -82,11 +82,11 @@ yy7:    if(yych &lt;= '/') goto yy3;
 </pre>
 <br />
 <br />
-<p>After the /*!re2c */ blocks you can place one /*!max:re2c */ comment 
-that will output a define (YYMAXFILL) that holds the maximum number of 
-characters required to parse the input. That is the maximum value YYFILL(n)
-will receive. If -t is in effect then YYMAXFILL can be triggered once anywhere
-in the code.</p>
+<p>You can place one /*!max:re2c */ comment that will output a "#define YYMAXFILL
+&lt;n&gt" line that holds the maximum number of characters 
+required to parse the input. That is the maximum value YYFILL(n)
+will receive. If -1 is in effect then YYMAXFILL can be triggered once 
+after the last /*!re2c */.</p>
 <p>You can also use /*!ignore:re2c */ blocks that allows to document the
 scanner code and will not be part of the output.</p>
 <a name="lbAE" id="lbAE"> </a>
@@ -109,7 +109,7 @@ YYDEBUG(int state, char current)</i>. The first parameter receives the state or
 <dt><b>-e</b></dt>
 <dd>Cross-compile from an ASCII platform to an EBCDIC one.<br /><br /></dd>
 <dt><b>-f</b></dt>
-<dd>Implies -t. Generate a scanner with support for storable state. For details see below
+<dd>Generate a scanner with support for storable state. For details see below
 at <b>SCANNER WITH STORABLE STATES</b>.<br /><br /></dd>
 <dt><b>-i</b></dt>
 <dd>Do not output #line information. This is usefull when you want use a CMS
@@ -119,9 +119,6 @@ Specify the output file.<br /><br /></dd>
 <dt><b>-s</b></dt>
 <dd>Generate nested ifs for some switches. Many compilers need this assist to
 generate better code.<br /><br /></dd>
-<dt><b>-t</b></dt>
-<dd>Force two pass generation, allows YYMAXFILL generation prior to last re2c 
-block.<br /><br /></dd>
 <dt><b>-v</b></dt>
 <dd>Show version information.<br /><br /></dd>
 <dt><b>-V</b></dt>
@@ -129,6 +126,8 @@ block.<br /><br /></dd>
 <dt><b>-w</b></dt>
 <dd>Create a parser that supports wide chars (UCS-2). This implies <b>-s</b>
 and cannot be used together with <b>-e</b> switch.<br /><br /></dd>
+<dt><b>-1</b></dt>
+<dd>Force single pass generation. This cannot be combined with -f.<br /><br /></dd>
 </dl>
 <br />
 <br />
@@ -162,10 +161,10 @@ regular expressions.<br /><br /></dd>
 least <i>n</i> additional characters should be provided. YYFILL(n) should adjust
 YYCURSOR, YYLIMIT, YYMARKER and YYCTXMARKER as needed. Note that for typical 
 programming languages <i>n</i> will be the length of the longest keyword plus 
-one. The user can place a comment of the form /*!max:re2c */ once after the 
-end of the last scanner block to insert a YYMAXFILL definition that is 
-set to the maximum length value. If -t switch is used then YYMAXFILL can be 
-triggered once anywhere in the code.<br /><br /></dd>
+one. The user can place a comment of the form /*!max:re2c */ once to insert 
+a YYMAXFILL definition that is set to the maximum length value. If -1 
+switch is used then YYMAXFILL can be triggered once after the last /*!re2c */
+block.<br /><br /></dd>
 <dt>YYGETSTATE()</dt>
 <dd>The user only needs to define this macro if the <b>-f</b> flag was
 specified. In that case, the generated code "calls" YYGETSTATE at the very
diff --git a/main.cc b/main.cc
index 24d10ccf98fa087fe4f45d8348546fd5680deabc..ad7ab749661809839464c134f95d618f28628c26 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -28,9 +28,9 @@ bool fFlag = false;
 bool iFlag = false;
 bool sFlag = false;
 bool wFlag = false;
-bool tFlag = false;
 
-bool bLastPass = false;
+bool bSinglePass = false;
+bool bLastPass   = false;
 
 bool bUsedYYAccept  = false;
 bool bUsedYYMaxFill = false;
@@ -72,16 +72,16 @@ static const mbo_opt_struct OPTIONS[] =
        mbo_opt_struct('i', 0, "no-debug-info"),
        mbo_opt_struct('o', 1, "output"),
        mbo_opt_struct('s', 0, "nested-ifs"),
-       mbo_opt_struct('t', 0, "two-pass"),
        mbo_opt_struct('v', 0, "version"),
        mbo_opt_struct('V', 0, "vernum"),
        mbo_opt_struct('w', 0, "wide-chars"),      
+       mbo_opt_struct('1', 0, "two-pass"),
        mbo_opt_struct('-', 0, NULL) /* end of args */
 };
 
 static void usage()
 {
-       cerr << "usage: re2c [-esbvhd] file\n"
+       cerr << "usage: re2c [-bdefhisvVw1] [-o file] file\n"
        "\n"
        "-? -h  --help           Display this info.\n"
        "\n"
@@ -97,8 +97,7 @@ static void usage()
        "-e     --ecb            Cross-compile from an ASCII platform to\n"
        "                        an EBCDIC one.\n"
        "\n"
-       "-f     --storable-state Implies -t. Generate a scanner that supports storable\n"
-       "                        states.\n"
+       "-f     --storable-state Generate a scanner that supports storable states.\n"
        "\n"
        "-i     --no-debug-info  Do not generate '#line' info (usefull for versioning).\n"
        "\n"
@@ -108,14 +107,14 @@ static void usage()
        "-s     --nested-ifs     Generate nested ifs for some switches. Many compilers\n"
        "                        need this assist to generate better code.\n"
        "\n"
-       "-t     --two-pass       Force two pass generation, allows YYMAXFILL generation\n"
-       "                        prior to last re2c block.\n"
-       "\n"
        "-v     --version        Show version information.\n"
        "-V     --vernum         Show version as one number.\n"
        "\n"
        "-w     --wide-chars     Create a parser that supports wide chars (UCS-2). This\n"
        "                        implies -s and cannot be used together with -e switch.\n"
+       "\n"
+       "-1     --single-pass    Force two pass generation, allows YYMAXFILL generation\n"
+       "                        prior to last re2c block.\n"
        ;
 }
 
@@ -157,7 +156,10 @@ int main(int argc, char *argv[])
 
                        case 'f':
                        fFlag = true;
-                       tFlag = true;
+                       if (bSinglePass) {
+                               std::cerr << "re2c: error: cannot combine -1 and -f switch\n";
+                               return 1;
+                       }
                        break;
 
                        case 'i':
@@ -172,8 +174,12 @@ int main(int argc, char *argv[])
                        sFlag = true;
                        break;
                        
-                       case 't':
-                       tFlag = true;
+                       case '1':
+                       if (bFlag) {
+                               std::cerr << "re2c: error: cannot combine -1 and -f switch\n";
+                               return 1;
+                       }
+                       bSinglePass = true;
                        break;
 
                        case 'v':
@@ -267,7 +273,7 @@ int main(int argc, char *argv[])
        sourceFileInfo = file_info(sourceFileName, &scanner);
        outputFileInfo = file_info(outputFileName, &output);
 
-       if (tFlag)
+       if (!bSinglePass)
        {
                bUsedYYMarker = false;
 
index f12575c1faca84a321ae7bf64558d4509159843a..eea07702e254cff5ad567e96448d66e5c62a65f7 100644 (file)
--- a/re2c.1.in
+++ b/re2c.1.in
@@ -10,7 +10,7 @@
 re2c \- convert regular expressions to C/C++
 
 .SH SYNOPSIS
-\*(re [\fB-bdefhistvVw\fP] [\fB-o output\fP] file\fP
+\*(re [\fB-bdefhisvVw1\fP] [\fB-o output\fP] file\fP
 
 .SH DESCRIPTION
 \*(re is a preprocessor that generates C-based recognizers from regular
@@ -86,11 +86,11 @@ yy7:    if(yych <= '/') goto yy3;
 .fi
 .in -3
 
-After the \fC/*!re2c */\fP blocks you can place one \fC/*!max:re2c */\fP comment
-that will output a define (\fCYYMAXFILL\fP) that holds the maximum number of 
-characters required to parse the input. That is the maximum value \fCYYFILL\fP(n)
-will receive. If -t is in effect then YYMAXFILL can be triggered once anywhere 
-in the code.
+You can place one \fC/*!max:re2c */\fP comment that will output a "#define 
+\fCYYMAXFILL\fP <n>" line that holds the maximum number of characters 
+required to parse the input. That is the maximum value \fCYYFILL\fP(n)
+will receive. If -1 is in effect then YYMAXFILL can only be triggered once
+after the last \fC/*!re2c */\fP.
 
 You can also use \fC/*!ignore:re2c */\fP blocks that allows to document the
 scanner code and will not be part of the output.
@@ -119,7 +119,7 @@ state or -1 and the second parameter receives the input at the current cursor.
 Cross-compile from an ASCII platform to an EBCDIC one. 
 .TP
 \fB-f\fP
-Implies \fB-t\fP. Generate a scanner with support for storable state.
+Generate a scanner with support for storable state.
 For details see below at \fBSCANNER WITH STORABLE STATES\fP.
 .TP
 \fB-i\fP
@@ -133,9 +133,6 @@ Specify the output file.
 Generate nested \fCif\fPs for some \fCswitch\fPes.  Many compilers need this
 assist to generate better code.
 .TP
-\fB-t\fP
-Force two pass generation, allows YYMAXFILL generation prior to last re2c block.
-.TP
 \fB-v\fP
 Show version information.
 .TP
@@ -145,6 +142,9 @@ Show the version as a number XXYYZZ.
 \fB-w\fP
 Create a parser that supports wide chars (UCS-2). This implies \fB-s\fP and 
 cannot be used together with \fB-e\fP switch.
+.TP
+\fB-1\fP
+Force single pass generation, this cannot be combined with -f.
 .SH "INTERFACE CODE"
 Unlike other scanner generators, \*(re does not generate complete scanners:
 the user must supply some interface code.
@@ -184,10 +184,10 @@ The generated code "calls" \fCYYFILL\fP(n) when the buffer needs
 be provided.  \fCYYFILL\fP(n) should adjust \fCYYCURSOR\fP, \fCYYLIMIT\fP,
 \fCYYMARKER\fP and \fCYYCTXMARKER\fP as needed.  Note that for typical 
 programming languages \fIn\fP will be the length of the longest keyword plus one.
-The user can place a comment of the form \fC/*!max:re2c */\fP once after the 
-end of the last scanner block to insert a \fCYYMAXFILL\fP definition that is 
-set to the maximum length value. If -t switch is used then YYMAXFILL can be 
-triggered once anywhere in the code.
+The user can place a comment of the form \fC/*!max:re2c */\fP once to insert 
+a \fCYYMAXFILL\fP definition that is set to the maximum length value. If -1 
+switch is used then YYMAXFILL can be triggered once after the last \fC/*!re2c */\fP
+block.
 .TP
 \fCYYGETSTATE()\fP
 The user only needs to define this macro if the \fB-f\fP flag was specified.
index 9886b179ea3d357711dafb64bb9519b44e24a07e..28071b64d59dbfaaa7e6c4a53f264aaa1e43497f 100644 (file)
@@ -108,7 +108,7 @@ int Scanner::echo()
 echo:
 /*!re2c
        "/*!re2c"       {
-                                       if (bUsedYYMaxFill && bLastPass && !tFlag) {
+                                       if (bUsedYYMaxFill && bSinglePass) {
                                                fatal("found scanner block after YYMAXFILL declaration");
                                        }
                                        out.write((const char*)(tok), (const char*)(&cursor[-7]) - (const char*)(tok));
index 96ce7cacaf6a46d7cfbc419998d64aae45a531ff..2ae3624a384baf5a203ce3169a9e3c5de689fca0 100755 (executable)
@@ -1,17 +1 @@
-/* Generated by re2c */
-#line 1 "error1.re"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#define RET(n) return n
-
-int scan(const char *s, int l) {
-const char *p = s;
-const char *q;
-#define YYCTYPE         char
-#define YYCURSOR        p
-#define YYLIMIT         (s+l)
-#define YYMARKER        q
-#define YYFILL(n)
 re2c: error: line 18, column 5: illegal closure form, use '{n}', '{n,}', '{n,m}' where n and m are numbers
index 566b382445114adfb08f7bd746ccade07f942819..b8ed5c75b2e103bb29336030ecb0bd271a33f061 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error10.re"
 re2c: error: line 2, column 6: Illegal unicode character, eight hexadecimal digits are required
index a9b7ad0d87ade14c4431a54714d20f8670b3e0dc..79a9cc162b1690cdad85bdc14089373c215aee04 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error11.re"
 re2c: error: line 2, column 9: Illegal unicode character, non hexadecimal digit found
index 3795804f6e9273d310fe78cea093209403e21c0a..3ddbb09bd3ecfe21f4c3ec534f7ddc71f00a7c00 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error12.re"
 re2c: error: line 3, column 17: trailing contexts are not allowed in named definitions
diff --git a/test/error13.1.c b/test/error13.1.c
new file mode 100755 (executable)
index 0000000..ad7e15c
--- /dev/null
@@ -0,0 +1,5 @@
+/* Generated by re2c */
+#line 1 "error13.1.re"
+#define YYMAXFILL 1
+
+re2c: error: line 0, column 1: found scanner block after YYMAXFILL declaration
similarity index 100%
rename from test/error13.t.re
rename to test/error13.1.re
index 7d60a114ddac372feaa1800fbc4b0e36a74429e2..ec8dbfa7d7ba8ccb7311c66445746590053d4532 100755 (executable)
@@ -1,5 +1,51 @@
 /* Generated by re2c */
 #line 1 "error13.re"
-#define YYMAXFILL 1
+#define YYMAXFILL 3
+
+
+#line 7 "<stdout>"
+{
+       YYCTYPE yych;
+
+       if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
+       yych = *YYCURSOR;
+       switch(yych){
+       case 'A':       goto yy2;
+       default:        goto yy4;
+       }
+yy2:
+       yych = *(YYMARKER = ++YYCURSOR);
+       switch(yych){
+       case 'B':       goto yy5;
+       default:        goto yy3;
+       }
+yy3:
+#line 6 "error13.re"
+       { return 0; }
+#line 26 "<stdout>"
+yy4:
+       yych = *++YYCURSOR;
+       goto yy3;
+yy5:
+       yych = *++YYCURSOR;
+       switch(yych){
+       case 'C':       goto yy7;
+       case 'D':       goto yy9;
+       default:        goto yy6;
+       }
+yy6:
+       YYCURSOR = YYMARKER;
+       goto yy3;
+yy7:
+       ++YYCURSOR;
+#line 4 "error13.re"
+       { return 1; }
+#line 44 "<stdout>"
+yy9:
+       ++YYCURSOR;
+#line 5 "error13.re"
+       { return 2; }
+#line 49 "<stdout>"
+}
+#line 7 "error13.re"
 
-re2c: error: line 0, column 1: found scanner block after YYMAXFILL declaration
similarity index 68%
rename from test/error13.t.c
rename to test/error14.1.c
index 3a434efd3154d6e7f7f8740f65109b5e4e346582..abc309aa94e0c60a1adfbca75123ca9b789d5854 100755 (executable)
@@ -1,9 +1,7 @@
 /* Generated by re2c */
-#line 1 "error13.t.re"
-#define YYMAXFILL 3
-
+#line 1 "error14.1.re"
 
-#line 7 "<stdout>"
+#line 5 "<stdout>"
 {
        YYCTYPE yych;
 
@@ -20,9 +18,9 @@ yy2:
        default:        goto yy3;
        }
 yy3:
-#line 6 "error13.t.re"
+#line 4 "error14.1.re"
        { return 0; }
-#line 26 "<stdout>"
+#line 24 "<stdout>"
 yy4:
        yych = *++YYCURSOR;
        goto yy3;
@@ -38,14 +36,18 @@ yy6:
        goto yy3;
 yy7:
        ++YYCURSOR;
-#line 4 "error13.t.re"
+#line 2 "error14.1.re"
        { return 1; }
-#line 44 "<stdout>"
+#line 42 "<stdout>"
 yy9:
        ++YYCURSOR;
-#line 5 "error13.t.re"
+#line 3 "error14.1.re"
        { return 2; }
-#line 49 "<stdout>"
+#line 47 "<stdout>"
 }
-#line 7 "error13.t.re"
+#line 5 "error14.1.re"
+
+
+#define YYMAXFILL 3
 
+re2c: error: line 5, column 1: cannot generate YYMAXFILL twice
similarity index 100%
rename from test/error14.t.re
rename to test/error14.1.re
index dbddeed1b5201cac3a510e1282460203f431a591..7235d52329496cb0e82c854b324315e3ad9dd5c1 100755 (executable)
@@ -1,53 +1 @@
-/* Generated by re2c */
-#line 1 "error14.re"
-
-#line 5 "<stdout>"
-{
-       YYCTYPE yych;
-
-       if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
-       yych = *YYCURSOR;
-       switch(yych){
-       case 'A':       goto yy2;
-       default:        goto yy4;
-       }
-yy2:
-       yych = *(YYMARKER = ++YYCURSOR);
-       switch(yych){
-       case 'B':       goto yy5;
-       default:        goto yy3;
-       }
-yy3:
-#line 4 "error14.re"
-       { return 0; }
-#line 24 "<stdout>"
-yy4:
-       yych = *++YYCURSOR;
-       goto yy3;
-yy5:
-       yych = *++YYCURSOR;
-       switch(yych){
-       case 'C':       goto yy7;
-       case 'D':       goto yy9;
-       default:        goto yy6;
-       }
-yy6:
-       YYCURSOR = YYMARKER;
-       goto yy3;
-yy7:
-       ++YYCURSOR;
-#line 2 "error14.re"
-       { return 1; }
-#line 42 "<stdout>"
-yy9:
-       ++YYCURSOR;
-#line 3 "error14.re"
-       { return 2; }
-#line 47 "<stdout>"
-}
-#line 5 "error14.re"
-
-
-#define YYMAXFILL 3
-
 re2c: error: line 5, column 1: cannot generate YYMAXFILL twice
diff --git a/test/error14.t.c b/test/error14.t.c
deleted file mode 100755 (executable)
index 7235d52..0000000
+++ /dev/null
@@ -1 +0,0 @@
-re2c: error: line 5, column 1: cannot generate YYMAXFILL twice
index b9340ae3d8984e28fb91871a60702f5952686ab3..2ae3624a384baf5a203ce3169a9e3c5de689fca0 100755 (executable)
@@ -1,17 +1 @@
-/* Generated by re2c */
-#line 1 "error2.re"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#define RET(n) return n
-
-int scan(const char *s, int l) {
-const char *p = s;
-const char *q;
-#define YYCTYPE         char
-#define YYCURSOR        p
-#define YYLIMIT         (s+l)
-#define YYMARKER        q
-#define YYFILL(n)
 re2c: error: line 18, column 5: illegal closure form, use '{n}', '{n,}', '{n,m}' where n and m are numbers
index ccd05205566a5a1210290af8702534dc96cf31ff..37a3fa2bcd92c9e0f4389236db6b75506b977e9d 100755 (executable)
@@ -1,17 +1 @@
-/* Generated by re2c */
-#line 1 "error3.re"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#define RET(n) return n
-
-int scan(const char *s, int l) {
-const char *p = s;
-const char *q;
-#define YYCTYPE         char
-#define YYCURSOR        p
-#define YYLIMIT         (s+l)
-#define YYMARKER        q
-#define YYFILL(n)
 re2c: error: line 18, column 5: unexpected character: ']'
index 4b8eed83b7f264a78e678052a0bbf5d4f34ef09a..4576cd94a7111af61c8ca691f26af6c29e8bf8e1 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error4.re"
 re2c: error: line 2, column 5: Illegal hexadecimal character code, two hexadecimal digits are required
index c90b4b9f8e799bfb7afe551dbdaa8bf27cf397d3..c2396edc8e6189eb82437e863f914bfa9ef614b9 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error5.re"
 re2c: error: line 2, column 5: Illegal hexadecimal character code
index 720d8a662f40373ab37afe278d7c8114af519239..3197aa20338277e597f586aba7ae2d8a62489e74 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error6.re"
 re2c: error: line 2, column 7: Illegal hexadecimal character code, four hexadecimal digits are required
index b5e89b892c710e2911e5228d56217644b6fc11b4..dcac2011c99ede5c7baf8a9b0beca21b150cf81e 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error7.re"
 re2c: error: line 2, column 3: Illegal octal character code, first digit must be 0 thru 3
index 653f07fc34bbe03e92e62d0605020327d11cd1ce..3bdb33468c2a0e0a6263eadeba2f663218d29ffb 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error8.re"
 re2c: error: line 2, column 4: Illegal octal character code, non octal digit found
index 7fc510632bab82ebc4fadd386fa3b23f6c8b8b62..c08a34b5c52439471d61a05e28d79aabbb9f5899 100755 (executable)
@@ -1,3 +1 @@
-/* Generated by re2c */
-#line 1 "error9.re"
 re2c: error: line 2, column 5: Illegal octal character code, non octal digit found