Skip to content

Make parser allow a slot list at top level #14

Description

@sin-ack

Currently we only allow slot lists in objects. This prevents the following from being valid code:

| foo. bar |
foo: 123.
bar: 456.
foo * bar; asString printLine.

There is no reason for the top-level context to not be a method object (in fact, the runtime already wraps the top-level context in a method object before activating it!). Therefore it makes equal sense to have the parser allow a slot list to be valid there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions