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

[interpreter] Support nested invoke/get in test scripts #1590

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions interpreter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,15 @@ module:
( module <name>? quote <string>* ) ;; module quoted in text (may be malformed)

action:
( invoke <name>? <string> <const>* ) ;; invoke function export
( invoke <name>? <string> <arg>* ) ;; invoke function export
( get <name>? <string> ) ;; get global export
( set <name>? <string> <arg> ) ;; set global export

const:
arg:
<literal> ;; literal argument
<action> ;; expression argument

literal:
( <num_type>.const <num> ) ;; number value
( <vec_type> <vec_shape> <num>+ ) ;; vector value
( ref.null <ref_kind> ) ;; null reference
Expand All @@ -410,7 +415,7 @@ assertion:
( assert_trap <module> <failure> ) ;; assert module traps on instantiation

result:
<const>
<literal>
( <num_type>.const <num_pat> )
( <vec_type>.const <vec_shape> <num_pat>+ )
( ref.extern )
Expand Down
Loading