diff options
author | ptmcg <ptmcg@austin.rr.com> | 2020-11-02 18:14:56 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2020-11-02 18:14:56 -0600 |
commit | 2dd2e2bb70407eea91f18de2caea5ba4527eb7dc (patch) | |
tree | c0a8824908983d6b4b81a6081af629e6ba8064b0 /examples/indentedGrammarExample.py | |
parent | 96e0fab07788fca87e1473b0ae755335d6988895 (diff) | |
download | pyparsing-git-2dd2e2bb70407eea91f18de2caea5ba4527eb7dc.tar.gz |
Add IndentedBlock class; made vertical keyword arg more visible when creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expressionpyparsing_3.0.0b1
Diffstat (limited to 'examples/indentedGrammarExample.py')
-rw-r--r-- | examples/indentedGrammarExample.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/indentedGrammarExample.py b/examples/indentedGrammarExample.py index c761393..706a0d7 100644 --- a/examples/indentedGrammarExample.py +++ b/examples/indentedGrammarExample.py @@ -10,6 +10,7 @@ from pyparsing import *
+
data = """\
def A(z):
A1
@@ -32,9 +33,8 @@ def spam(x,y): """
-indentStack = [1]
stmt = Forward()
-suite = indentedBlock(stmt, indentStack)
+suite = IndentedBlock(stmt)
identifier = Word(alphas, alphanums)
funcDecl = (
|