Commit 5491f428 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

documentation extended

parent c703ef12
......@@ -301,9 +301,9 @@ To reach this goal DHParser follows a few, mostly intuitive, conventions:
are considered significant by default.
Nodes generated by a parser associated to a symbol will carry the
symbol's name and cannot be elminated, silently. All other nodes are
symbol's name and cannot be eliminated, silently. All other nodes are
considered as disposable and may silently be removed from the tree to
simplify its structe, but preserving the content.
simplify its structure, but preserving the content.
2. Symbols can, however, be marked as "disposable", too.
......@@ -311,7 +311,7 @@ To reach this goal DHParser follows a few, mostly intuitive, conventions:
by the above grammar, but only object-, array-, string-, number-, true-,
false- or null-nodes. (See :py:ref:`~ebnf.simplifying_syntax_trees`.)
3. Insignificant whitespace is denoted a the single character: ``~``.
3. Insignificant whitespace is denoted with a the single character: ``~``.
4. Comments defined by the ``@comment``-directive at the top of the grammar
are allowed in any place where insignificant ``~``-whitespace is
......@@ -327,7 +327,7 @@ To reach this goal DHParser follows a few, mostly intuitive, conventions:
Since delimiters are typically surrounded by insignificant whitespace,
DHParser can be advised via the ``@literalws``-directive to
catch insignificant whitespace to the
right or left hand side of any string literal, keeping the
right or left hand side of string literals, keeping the
grammar clear of too many whitespace markers.
In case you want to grab a string without
......@@ -339,7 +339,7 @@ To reach this goal DHParser follows a few, mostly intuitive, conventions:
insignificant whitespace or disposable symbols. This greatly reduces
the verbosity of the concrete syntax tree.
In case you want to keep a particular string token in the tree
In case you want to keep a particular string-token in the tree
none the less, you can still do so by assigning it to a
non-disposable symbol, e.g. ``opening_bracket = "("`` and using
this symbol instead of the string literal in other expressions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment