Skip to content

Conversation

biboudis
Copy link
Contributor

@biboudis biboudis commented Jan 25, 2019

This PR pushes a toy interpreter for TASTy expressions. The main test file is on the tasty-interpreter/InterpretedMain.scala file where we support value declarations, if, while, arithmetic, method definitions, method calls (interpreted or via a reflective proxy if they are precompiled).

Also small additions to SymbolOps:

  • isDefinedInCurrentRun
  • signature in DefSymbolDeco
  • moduleClass in ValSymbolDeco
  • classSymbol in TypeDeco

@nicolasstucki
Copy link
Contributor

@biboudis something failed after the rebase.

@biboudis biboudis force-pushed the create-interpreter branch 2 times, most recently from 521e9f2 to 85e9e6a Compare January 28, 2019 13:11
@biboudis
Copy link
Contributor Author

Rebased

Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@ghost ghost added the review label Jan 29, 2019
@biboudis
Copy link
Contributor Author

@dotty-bot recheck cla

@nicolasstucki nicolasstucki merged commit ad94ab5 into scala:master Jan 29, 2019
@ghost ghost removed the review label Jan 29, 2019
@nicolasstucki nicolasstucki deleted the create-interpreter branch January 29, 2019 13:04
Blaisorblade added a commit to dotty-staging/dotty that referenced this pull request Jan 29, 2019
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.

2 participants