add abbreviated function import

This commit is contained in:
Ilya Rezvov
2018-01-20 18:17:31 -08:00
parent fdf1163c93
commit 67f5a377c4
+1
View File
@@ -520,6 +520,7 @@ importdesc :: { ImportDesc }
import :: { Import }
: '(' 'import' name name importdesc ')' { Import $3 $4 $5 }
| '(' 'func' opt(ident) '(' 'import' name name ')' typeuse ')' { Import $6 $7 $ ImportFunc $3 $9 }
localtypes :: { [LocalType] }
: list(localtype) { concat $1 }