mirror of
https://github.com/Alvin-Zilverstand/femcode.git
synced 2026-03-06 21:29:32 +01:00
feat: Implement dictionaries and property access
This commit is contained in:
@@ -274,7 +274,7 @@ class Parser:
|
|||||||
return self.parse_function_call(token)
|
return self.parse_function_call(token)
|
||||||
elif next_token.type == 'DOT':
|
elif next_token.type == 'DOT':
|
||||||
# It's a property access
|
# It's a property access
|
||||||
return self.parse_property_access(Variable(token)) # Pass Variable node as target
|
return self.parse_property_access(Variable(token))
|
||||||
elif next_token.type == 'LBRACKET':
|
elif next_token.type == 'LBRACKET':
|
||||||
# It's an index access
|
# It's an index access
|
||||||
return self.parse_index_access(Variable(token))
|
return self.parse_index_access(Variable(token))
|
||||||
|
|||||||
Reference in New Issue
Block a user