]> mj.ucw.cz Git - moe.git/commitdiff
Fixed a couple of typos in the documentation python
authorMartin Mares <mj@ucw.cz>
Fri, 24 Jun 2011 18:04:22 +0000 (20:04 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 24 Jun 2011 18:04:22 +0000 (20:04 +0200)
t/doc/config.rst
t/moe/config.py
t/moe/config_parser.py

index a07ec96d75e0b77d1ae81d59ec29a4bdfbd8eab5..4eb12600fdc77a6320177529d7e9290afeb5935a 100644 (file)
@@ -106,12 +106,12 @@ Substituted variable names must be given by their full names. ::
     # Defines LOG.TEST.LOGFILE
   }
   LOG.TEST { VERBOSE = "Y" }
-  # The subtree name may contain several level names
+  # The subtree name may contain multi-level names
 
 Conditionals
 ^^^^^^^^^^^^
 
-Any block of operations may be guarded by a condition. The conditions may be nested and
+Any block of operations may be guarded by a condition. The conditions may be nested and they
 consist of expressions containing ``and``, ``or``, ``not`` and variable/string (in)equalities. The strings
 may contain substitutions.
 
@@ -123,7 +123,7 @@ The syntax is the following::
     LANG = "C"
   }
 
-The curly brackets delimiting the bloc, as well as the brackets in the boolena expression,
+The curly brackets delimiting the block, as well as the parentheses in the boolean expression,
 are mandatory. ``else`` is not supported. ``if VAR=="FOO" {...}`` is equivalent to ``if "{VAR}"=="FOO" {...}``.
 
 
index 7d8c28f6e8ceb9aa1d23666a6cfba8e4230a876a..8aac6c04ededa6128f63466e06c86ebb8cb6e6d8 100644 (file)
@@ -3,7 +3,7 @@ Module for managing and evaluation of Moe configuration variables.
 
 .. todo:: (OPT) Cleanup of unused undefined variables.
 .. todo:: (OPT) Better variable name checking (no name '.'-structural prefix of another)
-.. todo:: (OPT) Implemet "subtree" listing.
+.. todo:: (OPT) Implement "subtree" listing.
 """
 
 import types, itertools, re, bisect
index ad10b02ed365d2d2cc47b2ca842039d169b3aa45..a6aac797e9337be0048bb8b479f844fc2d785d87 100644 (file)
@@ -2,7 +2,7 @@ r"""
 Simple Moe configuration file syntax parser. 
 
 Generally, whitespace and comments are alowed everywhere except in variable names and inside expressions,
-``\\n`` ends a ``COMMENT``.
+``\n`` ends a ``COMMENT``.
 
 ``FILE``, ``BLOCK``, ``STATEMENT``, ``OPERATION``, ``SUBTREE``, ``CONDITION``, ``FORMULA``, ``AND``, ``OR`` 
 and ``NOT`` ignore any preceding whitespace. 
@@ -35,7 +35,7 @@ The configuration syntax is the following::
     ECHAR = re('([^\{}]|\\|\{|\}|\\n)*')
     VARNAME = re('[a-zA-Z0-9-_]+(\.[a-zA-Z0-9-_]+)*')
 
-.. todo:: should whitespace (incl. '\n') be allowed (almost) everywhere? 
+.. todo:: should whitespace (incl. '\\n') be allowed (almost) everywhere? 
          can comment be anywhere whitespace can?
 .. note:: ';' or '\\n' is currently required even after CONDITION and SUBTREE block 
 .. note:: Formula can contain additional/unnecessary parentheses