Make sure dot-expression works as well
This commit is contained in:
parent
ba4b36b7ba
commit
af80cd43b3
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
global sometable = {}
|
global sometable = {}
|
||||||
sometable["hello"] = "there"
|
sometable.hello = "there"
|
||||||
|
|||||||
@ -305,7 +305,6 @@ impl Parse for IndexedAccess {
|
|||||||
}
|
}
|
||||||
Token::Symbol('.') => {
|
Token::Symbol('.') => {
|
||||||
let word = stream.parse::<Node<String>>()?;
|
let word = stream.parse::<Node<String>>()?;
|
||||||
stream.expect_symbol(']')?;
|
|
||||||
expressions.push(Node {
|
expressions.push(Node {
|
||||||
kind: Expression::Literal(Literal::String(word.kind)),
|
kind: Expression::Literal(Literal::String(word.kind)),
|
||||||
meta: word.meta,
|
meta: word.meta,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user