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

Experiment #27

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from
Draft

Experiment #27

wants to merge 33 commits into from

Conversation

chanryu
Copy link
Owner

@chanryu chanryu commented Sep 20, 2021

Originally, the experiment branch was created to experiment a few additional feature to Lox such as the break statement. However, it evolved into a new language which is no longer compatible Lox over time.

I'm continuing this broader experiment for fun and learning.

Agenda:

  • Runtime interfade
    • To be implemented by Interpreter for now
    • Future proof for VM
  • Module
    • import statement
    • Module object -- kind of a namespace
  • Common ancestor class Object
    • toString
  • newline statement terminator
  • static (a.k.a. class) methods
    • constructor?
  • method/function override by arity
  • Explicit instance variable
  • Method shadow warning?
    class Foo {
      var bar;
      bar() {} // warning: bar() will not be accessible!
    }

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.

1 participant