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

Parse variable declaration #7

Closed
arBmind opened this issue Dec 30, 2016 · 1 comment
Closed

Parse variable declaration #7

arBmind opened this issue Dec 30, 2016 · 1 comment

Comments

@arBmind
Copy link
Member

arBmind commented Dec 30, 2016

Please implement a parsing function that introduces new variables.

The current proposed Syntax:
<id "let"> <op "&">? <op "*">? <id :name> (<op ":"><exp :type>)? (<op "="> <exp :init>)?

Stretch goals:

  • allow multiple variables in one let statement
  • infer type if this is possible (not all types can be inferred directly)
  • allow destructuring of return values
@arBmind
Copy link
Member Author

arBmind commented Mar 8, 2017

basic variable declaration is implemented. type inference & destructuring is still up.

@arBmind arBmind closed this as completed Mar 8, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant