From c040e67c4c0cd29e02d4195e3ab85610b457d27e Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 3 Sep 2022 11:56:52 +0800 Subject: hackc: LetStatement accepts SubscriptTerm --- projects/hackc/expressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'projects/hackc/expressions.py') 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: - '[' ']' + '[' ']' """ if tokens[0].type != "identifier" or tokens[1] != LEFT_BRACKET: return (None, 0) -- cgit v1.2.3