Skip to content

Commit

Permalink
a problematic WIP implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Oct 14, 2024
1 parent ff51ba1 commit 86a6fbb
Show file tree
Hide file tree
Showing 5 changed files with 1,087 additions and 999 deletions.
5 changes: 3 additions & 2 deletions grammar/WatParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,10 @@ blockInstr
| IF bindVar? block (ELSE bindVar? instrList)? END bindVar?
;

// treat blockType as an alias to funcType
blockType
: funcType
: (LPAR RESULT valType RPAR)?
| typeUse funcType
| funcType // abbreviation
;

block
Expand Down
Loading

0 comments on commit 86a6fbb

Please sign in to comment.