Skip to content

S-Expression Syntax #466

Closed
Closed

Description

@lgalfaso

At https://github.com/WebAssembly/spec/blame/master/interpreter/README.md#L271
the definition of a module does not allow <typedef> after <func>, nor <func> after <table>, but at https://github.com/WebAssembly/spec/blob/master/test/core/func.wast#L159 these two things happen.

Is the definition right and the test wrong or the other way around?

Activity

  1. rossberg commented on Apr 24, 2017

    @rossberg
    Member

    The order of module fields is almost entirely free in the text format. The only restriction is that imports must come before actual definitions, in order to maintain their index space order. The grammar in the README is only approximate in that regard, mainly to keep it simple. I'm hoping to get round to specifying the text format properly this week or the next.

  2. jamen commented on Apr 24, 2017

    @jamen

    Ya been doing some awesome work @rossberg-chromium! ❤️

  3. rossberg commented on May 18, 2017

    @rossberg
    Member

    I noted the free ordering in the README, and PR #471 is on the way, so closing this.

  4. added a commit that references this issue on Nov 13, 2023
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions