summaryrefslogtreecommitdiff
path: root/projects/hackc/expressions.py
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hackc/expressions.py')
-rw-r--r--projects/hackc/expressions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/hackc/expressions.py b/projects/hackc/expressions.py
index 2e08cef..dcdb961 100644
--- a/projects/hackc/expressions.py
+++ b/projects/hackc/expressions.py
@@ -55,7 +55,7 @@ class SubscriptTerm:
"""Construct a subscripted array term.
Format:
- <var> '[' <subscript> ']'
+ <var> '[' <expression> ']'
"""
if tokens[0].type != "identifier" or tokens[1] != LEFT_BRACKET:
return (None, 0)