summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2022-11-28 19:34:59 -0600
committerGitHub <noreply@github.com>2022-11-28 19:34:59 -0600
commit66369a66fa85981ab7a5e1dffd4ff7109bf4fa54 (patch)
tree5aacc8f6f8d77cea256e2d503425da7a69510cb2
parentd874dcd09d51a1479fb41b04b70c5f543ebf8371 (diff)
parent80024193c11ca6962e9c7de3ab88cec281940379 (diff)
downloadply-66369a66fa85981ab7a5e1dffd4ff7109bf4fa54.tar.gz
Merge pull request #275 from yeyon/master
docs: fix couple of typos
-rw-r--r--doc/ply.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ply.md b/doc/ply.md
index a7d72c1..da6665c 100644
--- a/doc/ply.md
+++ b/doc/ply.md
@@ -95,7 +95,7 @@ values. For example:
('ID','x'), ('EQUALS','='), ('NUMBER','3'),
('PLUS','+'), ('NUMBER','42'), ('TIMES','*'),
('LPAREN','('), ('ID','s'), ('MINUS','-'),
- ('ID','t'), ('RPAREN',')'
+ ('ID','t'), ('RPAREN',')')
The specification of tokens is done by writing a series of regular
expression rules. The next section shows how this is done using
@@ -1369,7 +1369,7 @@ function. For example, consider the two rules in our earlier example:
'expression : expression PLUS term'
p[0] = p[1] + p[3]
- def p_expression_minus(t):
+ def p_expression_minus(p):
'expression : expression MINUS term'
p[0] = p[1] - p[3]