Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:let is parsed as NODE_EXCMD (not NODE_LET) #117

Open
tyru opened this issue Jul 19, 2019 · 3 comments · May be fixed by #138
Open

:let is parsed as NODE_EXCMD (not NODE_LET) #117

tyru opened this issue Jul 19, 2019 · 3 comments · May be fixed by #138
Labels

Comments

@tyru
Copy link
Member

tyru commented Jul 19, 2019

Problem

let

is parsed as

(excmd "let")

Expected

(let)
@tyru
Copy link
Member Author

tyru commented Jul 19, 2019

let var

is also

(excmd "let var")

@tyru
Copy link
Member Author

tyru commented Jul 19, 2019

Currently :const implementation is same #119

@tyru
Copy link
Member Author

tyru commented Aug 2, 2019

let var

should be

(let () var)

because the second argument of assignment :let node is operator.
compiler should not allow arbitrary variable name here (() means nil).

let n = 42
(let = a 42)

@tyru tyru linked a pull request Aug 2, 2019 that will close this issue
@tyru tyru added the bug label Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant