Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.
This repository was archived by the owner on May 31, 2024. It is now read-only.

Module parsing #1

@theodorton

Description

@theodorton

Modules are currently not transpiled, as I haven't decided how they should be treated.

I believe the most natural way would be to treat a Crystal module as an Object, defined as a global.

module Foo
  module Bar
    def hello
      "world"
    end
  end
end
global.Foo = {
  Bar: {
    hello() { return "world"; },
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions