]> granicus.if.org Git - re2c/commitdiff
Renamed file (avoided using '+' symbols in URL).
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 19 Nov 2015 20:58:57 +0000 (20:58 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 19 Nov 2015 20:58:57 +0000 (20:58 +0000)
Makefile
src/examples/07_cxx98.re [moved from src/examples/07_c++98.re with 100% similarity]
src/examples/example_07.rst

index 18c3c9a61a63c07e29f75e27083ba959fc0cbbf5..d1e7703c5ee211aecda9527c0f68e6d66f9c0a53 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ SRC_OTH = \
     src/examples/05_parsing_integers_conditions.re \
     src/examples/06_braille.utf32.txt \
     src/examples/06_braille.re \
-    src/examples/07_c++98.re \
+    src/examples/07_cxx98.re \
     src/examples/01_recognizing_integers.re \
     src/examples/04_parsing_integers_blocks.re \
     src/examples/06_braille.ucs2.txt \
index ccfe7824cefb4c796ad11ac8fc7d0b4973793e0f..76b6bd01c8b6f1b7f543407a998fa10b1a50ec78 100644 (file)
@@ -10,9 +10,9 @@ are parsed (not only recognized): numeric literals are converted to numbers, str
 Some additional checks described in standard (e.g. overflows in integer literals) are also done.
 In fact, C++ is an easy language to lex: unlike many other languages, lexer can proceed without feedback from parser.
 
-`[07_c++98.re] <07_c++98.re>`_
+`[07_cxx98.re] <07_cxx98.re>`_
 
-.. include:: 07_c++98.re
+.. include:: 07_cxx98.re
     :code: cpp
     :number-lines:
 
@@ -45,9 +45,9 @@ Generate, compile and run:
 
 .. code-block:: bash
 
-    $ re2c -o example.cc 07_c++98.re
+    $ re2c -o example.cc 07_cxx98.re
     $ g++ -o example example.cc
-    $ ./example 07_c++98.re | fold
+    $ ./example 07_cxx98.re | fold
      STATIC CONST size_t SIZE = 64 * 1024; STRUCT input_t { UNSIGNED CHAR buf[SIZE +
      YYMAXFILL]; UNSIGNED CHAR *lim; UNSIGNED CHAR *cur; UNSIGNED CHAR *mar; UNSIGNE
     D CHAR *tok; BOOL eof; FILE *CONST file; input_t(FILE *f) : buf() , lim(buf + SI