Anonymous avatar Anonymous committed e43739b

documentation update

Comments (0)

Files changed (2)

docs/grammar_elements.en.yhtml2

 
     h2 id=basic > Basic Grammar Elements
 
-    h3 id=literals > str instances
+    h3 id=literals > str instances and Literal
 
     h4 > Parsing
 
     p   >>
-        A «str» instance is parsed in the source text as a
+        A «str» instance as well as an instance of «pypeg2.Literal» is parsed
+        in the source text as a
         `w "Terminal_and_nonterminal_symbols" > Terminal Symbol`.
         It is removed and no result is put into the ∫Abstract syntax tree∫.
         If it does not exist at the correct position in the source text,
     h4 > Parsing
 
     p   >>
-        ƒpyPEG uses Python's «re» module. «pypeg2.RegEx» is an alias for
-        πre.html#re-objects Python Regular Expression Objectsπ.
-        Regular Expressions are parsed as
+        ƒpyPEG uses Python's «re» module. You can use
+        πre.html#re-objects Python Regular Expression Objectsπ purely, or use
+        the «pypeg2.RegEx» encapsulation.  Regular Expressions are parsed as
         `w "Terminal_and_nonterminal_symbols" > Terminal Symbols`. The matching 
         result is put into the AST. If no match can be achieved, a 
         «SyntaxError» is generated.
         'give me=◊a value\\n◊'
         ||
 
-    h3 id=tuple > tuple instances
+    h3 id=tuple > tuple instances and Concat
 
     h4 > Parsing
 
     p   >>
-        A «tuple» specifies, that different things have to be parsed one after
-        another. If not all of them parse in their sequence, a «SyntaxError» is
-        generated.
+        A «tuple» or an instance of «pypeg2.Concat» specifies, that different
+        things have to be parsed one after another. If not all of them parse in
+        their sequence, a «SyntaxError» is generated.
         >>
 
     p > Example:
     h4 > Parsing
 
     p   >>
-        A «list» instance represents different options. They're tested in their
-        sequence. The first option which parses is chosen, the others are not
-        tested any more. If none matches, a «SyntaxError» is generated.
+        A «list» instance which is not derived from «pypeg2.Concat» represents
+        different options. They're tested in their sequence. The first option
+        which parses is chosen, the others are not tested any more. If none
+        matches, a «SyntaxError» is generated.
         >>
 
     p > Example:

docs/heading.en.yinc2

 div id="headline" {
     p > pyPEG – a PEG Parser-Interpreter in Python
     div class="small" {
-        "pyPEG 2.3.0 of Sa May 26 2012 – Copyleft 2009-2012, "
+        "pyPEG 2.3.0 of Th May 31 2012 – Copyleft 2009-2012, "
         a "http://fdik.org", "Volker Birk";
     }
     div id=python1 p {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.