diff options
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 = (
|