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

Support Bitstr Expression #220

Open
yoshihiro503 opened this issue Mar 11, 2019 · 2 comments
Open

Support Bitstr Expression #220

yoshihiro503 opened this issue Mar 11, 2019 · 2 comments
Assignees

Comments

@yoshihiro503
Copy link
Contributor

  • Add Bitstr variant to Ast.constant
  • Translate <<X/string, Y/binary>> -> like binary:app(list_to_bin(X), Y)
@yuezato
Copy link
Collaborator

yuezato commented Sep 2, 2019

A = <<(B=C):(C=2)>>.
* 1: variable 'C' is unbound

and

A = <<(B=1):(C=B)>>.
<<1:1>>

These two suggest that, for <<exp1:exp2>>, exp1 should be evaluated before exp2.

However,

A = <<(B=1):(if (B == 3) -> 5; true -> 6 end)>>.
* 1: variable 'B' is unbound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants