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

Feature interpreter refactor #287

Merged
merged 8 commits into from
Apr 25, 2020
Merged

Conversation

flbulgarelli
Copy link
Member

@flbulgarelli flbulgarelli commented Apr 21, 2020

Those are just minor refactors to the interpreter:

  • An Internals module has been extracted, with the internal data structures used by the interpereter
  • typeErrors and primitive operator wrappers have being slightly reifiyed

Also the python ignored tests were already passing.

Some notes:

  • the Internals module contains the ExecutionContext and Value definitions which are currently core to the interpreter and exposed to any consumer of it. I am planning to hide them in the future with the introduction of a Repl module that complements the Runner module.

Also, I want to make primitives to be easy to implement since I am planning to introduce more of them. See #286

@flbulgarelli flbulgarelli force-pushed the feature-interpreter-improvements branch from 57ce563 to dfd48d7 Compare April 21, 2020 02:35
@flbulgarelli flbulgarelli force-pushed the feature-interpreter-improvements branch from dfd48d7 to e631d04 Compare April 21, 2020 21:56
@flbulgarelli flbulgarelli changed the title Feature interpreter improvements Feature interpreter refactor Apr 22, 2020
@flbulgarelli flbulgarelli marked this pull request as ready for review April 22, 2020 12:30
@flbulgarelli flbulgarelli mentioned this pull request Apr 22, 2020
Copy link
Member

@julian-berbel julian-berbel left a comment

Choose a reason for hiding this comment

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

❤️

@flbulgarelli flbulgarelli merged commit 0734e56 into master Apr 25, 2020
@flbulgarelli flbulgarelli deleted the feature-interpreter-improvements branch April 25, 2020 02:59
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