Skip to content

feat(grammar): added support for map types, nested packages, external-ids, and fallible constructors - #30

Merged
mkatychev merged 3 commits into
mainfrom
feat/map-support
Jul 15, 2026
Merged

feat(grammar): added support for map types, nested packages, external-ids, and fallible constructors#30
mkatychev merged 3 commits into
mainfrom
feat/map-support

Conversation

@mkatychev

Copy link
Copy Markdown
Member

Created decl_head for the package_decl contents without semicolon.
This pattern, though not following the spec, makes it easier to reconcile with nested packages:

decl_head: $ =>
seq(
'package',
repeat1($._uri_head),
$.id,
repeat($._uri_tail),
optional($._version),
),

Named interfaces and exports:

==================
Named interface imports and exports
==================
world my-world {
import primary: wasi:keyvalue/store;
import secondary: wasi:keyvalue/store;
export my-handler: wasi:http/handler;
import cache: store;
}
---

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