aboutsummaryrefslogtreecommitdiff
path: root/parser.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-25 21:29:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-25 21:29:59 +0200
commitb2df86d5ccf49ccc1b4489a4a0ab47175d007df9 (patch)
tree174cc248b9bd1be97addaf9b166dba7650a2ee3b /parser.py
parent81fbb83f84cd7c1180d4c9d16f6e48eb8961c4ad (diff)
downloadmeson-b2df86d5ccf49ccc1b4489a4a0ab47175d007df9.zip
meson-b2df86d5ccf49ccc1b4489a4a0ab47175d007df9.tar.gz
meson-b2df86d5ccf49ccc1b4489a4a0ab47175d007df9.tar.bz2
Renamed EQUALS.
Diffstat (limited to 'parser.py')
-rwxr-xr-xparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/parser.py b/parser.py
index 1c00ab8..96cf1f7 100755
--- a/parser.py
+++ b/parser.py
@@ -33,7 +33,7 @@ tokens = ['LPAREN',
'RBRACE',
'ATOM',
'COMMENT',
- 'EQUALS',
+ 'ASSIGN',
'COMMA',
'DOT',
'STRING',
@@ -41,7 +41,7 @@ tokens = ['LPAREN',
'EOL',
] + list(reserved.values())
-t_EQUALS = '='
+t_ASSIGN = '='
t_LPAREN = '\('
t_RPAREN = '\)'
t_LBRACKET = '\['
@@ -112,7 +112,7 @@ def p_expression_string(t):
t[0] = nodes.StringExpression(t[1], t.lineno(1))
def p_statement_assign(t):
- 'statement : expression EQUALS statement'
+ 'statement : expression ASSIGN statement'
t[0] = nodes.Assignment(t[1], t[3], t.lineno(1))
def p_statement_func_call(t):