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

[Truffle] Updating to most recent version of Truffle API. Compiles, but does no… #3240

Merged
merged 1 commit into from
Aug 10, 2015
Merged

[Truffle] Updating to most recent version of Truffle API. Compiles, but does no… #3240

merged 1 commit into from
Aug 10, 2015

Conversation

jtulach
Copy link
Contributor

@jtulach jtulach commented Aug 10, 2015

…t implement TruffleLanguage.parse yet.

Here are the syntactic changes needed to update to new version of Truffle API. However the bigger change is the parse method - it is supposed to be context-less - I have no idea how to implement it properly, the parsing seems to require reference to context right now.

@eregon
Copy link
Member

eregon commented Aug 10, 2015

Some parsing like in a=42; eval("a") needs the context and the surrounding frame, so for some cases it's needed. How do other languages handle this?

If we don't need the parent frame (parsing a whole file) then we use the context to reference core classes and such. Forcing them to do it without the context might not be very nice (does it mean everything depending on context has to be set up at the first execute()?).

@pitr-ch pitr-ch added this to the truffle-dev milestone Aug 10, 2015
@pitr-ch pitr-ch changed the title Updating to most recent version of Truffle API. Compiles, but does no… [Truffle] Updating to most recent version of Truffle API. Compiles, but does no… Aug 10, 2015
…ut does not implement TruffleLanguage.parse yet.
@jtulach
Copy link
Contributor Author

jtulach commented Aug 10, 2015

@eregon: In general the parsing of source shouldn't require any context at all. It's just about understanding the source syntax, not really resolving symbols, etc.

@chrisseaton chrisseaton self-assigned this Aug 10, 2015
@chrisseaton chrisseaton merged commit 2c5fb6f into jruby:truffle-head Aug 10, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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

Successfully merging this pull request may close these issues.

None yet

5 participants