summaryrefslogtreecommitdiff
path: root/examples/greeting.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/greeting.py')
-rw-r--r--examples/greeting.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/greeting.py b/examples/greeting.py
index 28a534a..17a7b2a 100644
--- a/examples/greeting.py
+++ b/examples/greeting.py
@@ -8,16 +8,16 @@
import pyparsing as pp
# define grammar
-greet = pp.Word(pp.alphas) + "," + pp.Word(pp.alphas) + pp.oneOf("! ? .")
+greet = pp.Word(pp.alphas) + "," + pp.Word(pp.alphas) + pp.one_of("! ? .")
# input string
hello = "Hello, World!"
# parse input string
-print(hello, "->", greet.parseString(hello))
+print(hello, "->", greet.parse_string(hello))
# parse a bunch of input strings
-greet.runTests(
+greet.run_tests(
"""\
Hello, World!
Ahoy, Matey!