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

fvl_to_letchain sucks #28

Open
jpolitz opened this issue Jan 21, 2013 · 0 comments
Open

fvl_to_letchain sucks #28

jpolitz opened this issue Jan 21, 2013 · 0 comments

Comments

@jpolitz
Copy link
Member

jpolitz commented Jan 21, 2013

js_to_exprjs currently uses specially-named identifiers to transform surface JS into an intermediate form (ExprJS). The transformation looks like:

function f(x) {
  var y = 5;
}

f = func(this, args) {
  let %%x = undefined
  let %%y = undefined
  %%y = 5
}}

Then the next step looks for %% variables and turns them into context objects. We should have a special let form that binds JS-ids specifically, and not use the %%-hack.

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

1 participant