]> granicus.if.org Git - re2c/commitdiff
Updated re2c description on homepage. Fixed typo.
authorUlya Trofimovich <skvadrik@gmail.com>
Sat, 5 Mar 2016 11:15:16 +0000 (11:15 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Sat, 5 Mar 2016 11:15:16 +0000 (11:15 +0000)
src/about/about.rst
src/examples/examples.rst
src/index.rst
src/manual/features/features.rst
src/manual/manual.rst
src/manual/warnings/warnings.rst
src/news/news.rst

index ccba659a2cea1cdba47af63cffed2933de2edf08..60d4bcc63933c4eabfd091fe048c4bbae1044902 100644 (file)
@@ -28,9 +28,6 @@ Let me know if I missed someone!
 License
 -------
 
-re2c is distributed with no warranty whatever.
-The code is certain to contain errors.
-Neither the author nor any contributor takes responsibility for any consequences of its use.
 re2c is in the public domain. The data structures and algorithms used
 in re2c are all either taken from documents available to the general
 public or are inventions of the author. Programs generated by re2c may
@@ -40,6 +37,10 @@ they can obtain for re2c. If you do make use of re2c, or incorporate it into a l
 acknowledgement somewhere (documentation, research report, etc.) would
 be appreciated.
 
+re2c is distributed with no warranty whatever.
+The code is certain to contain errors.
+Neither the author nor any contributor takes responsibility for any consequences of its use.
+
 Version
 -------
 
index 1d86326119db30c1a0125b7125b79e21abc20377..df547d849aab6aa4955fc843684a0b5c6f782654 100644 (file)
@@ -2,8 +2,12 @@
 Examples
 ========
 
+All examples are written in C++-98.
+`Do let me know <skvadik@gmail.com>`_ if you notice any obvious lies and errors.
+You can find more examples in subdirectory ``examples`` of the ``re2c`` distribution.
+
 .. toctree::
-    :hidden:
+    :maxdepth: 1
 
     Recognizing integers: the sentinel method   <example_01>
     Recognizing strings: the need for YYMAXFILL <example_02>
@@ -13,7 +17,3 @@ Examples
     Braille patterns (encodings)                <example_06>
     C++98 lexer                                 <example_07>
 
-All examples are written in C++-98.
-`Do let me know <skvadik@gmail.com>`_ if you notice any obvious lies and errors.
-You can find more examples in subdirectory ``examples`` of the ``re2c`` distribution.
-
index d996b7055e07199ebb302ad515ef758fad07250e..cd8389fcdac461060da5e51ef537d0d725deecc0 100644 (file)
@@ -13,20 +13,31 @@ re2c
 
 
 re2c is a lexer generator for C/C++.
-It has two key features:
+Its key features are:
 
-* Very fast lexers. The generated code is like a carefully tuned hand-crafted C/C++ lexer.
-  It's because re2c generates minimalistic hard-coded DFA
-  (as opposed to full-featured table based lexers).
+*   Very fast lexers: the generated code is as good as a carefully tuned hand-crafted C/C++ lexer.
+    It's because re2c generates minimalistic hard-coded state machine
+    (as opposed to full-featured table-based lexers).
 
-* Very flexible lexers. The generated code can be wired into virtually any environment.
-  Instead of exposing a traditional API, re2c gives you access to its internals,
-  so that you can mess with the guts of your lexer as much as you need.
-  Of course, this can lead to all sorts of bad things.
-  With great flexibility comes great responsibility. ;)
-  Be sure to take a look at `examples <examples/examples.html>`_,
-  they cover a lot of real-world cases and
-  shed some light on dark corners of re2c API.
+*   Flexible API: the generated code can be wired into virtually any environment.
+    Instead of exposing traditional ``yylex()`` style API, re2c exposes its internals.
+    This gives you several opportunities.
+    First, you can avoid unnecessary overhead: drop useless runtime checks, do inplace lexing, etc.
+    Second, you can adjust lexer to your particular input model.
+    Third, you can make all sorts of strange hacks.
+    Of course, this means that you have to be careful:
+    with great power comes great responsibility.
+    Be sure to take a look at `examples <examples/examples.html>`_,
+    they cover a lot of real-world cases and shed some light on dark corners of re2c API.
+
+*   `Warnings <manual/warnings/warnings.html>`_ (static analyses):
+    re2c warns you when your code is bad and suggests a fix.
+
+*   `Autognerated tests <manual/features/skeleton/skeleton.html>`_ (dynamic analyses):
+    re2c generates test program together with the input data.
+    The generated input has very good coverage.
+
+*   `License <about/about.html>`_ (public domain).
 
 
 
@@ -64,7 +75,7 @@ Projects that use re2c
 * `ninja <https://ninja-build.org/>`_ (a small build system with a focus on speed)
 * `yasm <http://yasm.tortall.net/>`_ (assembler)
 * `spamasassin <https://spamassassin.apache.org/>`_ (anti-spam platform)
-* `BLR-CAD <http://brlcad.org/>`_ (cross-platform solid modeling system)
+* `BRL-CAD <http://brlcad.org/>`_ (cross-platform solid modeling system)
 * ... last but not least, `re2c <http://re2c.org>`_
 
 This list is by no means complete;
index 3d8831019fd63f6c85cdf1bf8d4b405a2e4bc0f3..c7c71fc4f43d3c982d96bc51aa887b4912215aa8 100644 (file)
@@ -3,7 +3,7 @@ Features
 ========
 
 .. toctree::
-    :hidden:
+    :maxdepth: 1
 
     Conditions     <conditions/conditions>
     State          <state/state>
index c61769492bfabc695b32cb870d5dc9f282028812..70f7ffa433fa905350501e653b65aa323f94301c 100644 (file)
@@ -3,7 +3,7 @@ Manual
 ======
 
 .. toctree::
-    :hidden:
+    :maxdepth: 1
 
     Options <options/options>
     Warnings <warnings/warnings>
index 54f328dcee3cf1f225dfdb8d93dcfe6a1e2a6fa4..e59144d89b401af598f1333d8260c57b684ae837 100644 (file)
@@ -2,8 +2,12 @@
 Warnings
 ========
 
+.. include:: warnings_general.rst
+
+re2c has the following warnings:
+
 .. toctree::
-    :hidden:
+    :maxdepth: 1
 
     [-Wundefined-control-flow] <undefined_control_flow/wundefined_control_flow>
     [-Wunreachable-rules]      <unreachable_rules/wunreachable_rules>
@@ -12,6 +16,3 @@ Warnings
     [-Wswapped-range]          <swapped_range/wswapped_range>
     [-Wempty-character-class]  <empty_character_class/wempty_character_class>
     [-Wmatch-empty-string]     <match_empty_string/wmatch_empty_string>
-
-.. include:: warnings_general.rst
-
index 1a946b8a2e5a1ba200d0ba254a63e974092fe305..a562358ea37804e4ffb18139b2bb9bb3d495dcac 100644 (file)
@@ -3,7 +3,7 @@ News
 ====
 
 .. toctree::
-    :hidden:
+    :maxdepth: 1
 
     Release 0.16 <release_notes/0_16>
     Release 0.15.3 <release_notes/0_15_3>