remove unused rules

This commit is contained in:
Ilya Rezvov
2018-01-23 10:33:34 -08:00
parent 995d2be41d
commit 23aa6d5238
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
## Status
* Lexer: supports nested block comments and all lexemes from Spec
* Parser: parses all examples from WebAssembly Core TestsSuit
* Parser: parses all examples from WebAssembly Core TestsSuit(including folded instructions parsing)
## ToDo
* Improve error messages for text representation parsing
-8
View File
@@ -619,18 +619,10 @@ export_import_typeuse_locals_body1 :: { [ModuleField] }
: 'export' name ')' export_import_typeuse_locals_body { (MFExport $ Export $2 $ ExportFunc Nothing) : $4 }
| import_typeuse_locals_body1 { [$1] }
import_typeuse_locals_body :: { ModuleField }
: '(' import_typeuse_locals_body1 { $2 }
| ')' { MFFunc $ Function Nothing (AnonimousTypeUse $ FuncType [] []) [] [] }
import_typeuse_locals_body1 :: { ModuleField }
: 'import' name name ')' typeuse ')' { MFImport $ Import $2 $3 $ ImportFunc Nothing $5 }
| typeuse_locals_body1 { MFFunc $ Function Nothing (t3fst $1) (t3snd $1) (t3thd $1) }
typeuse_locals_body :: { (TypeUse, [LocalType], [Instruction]) }
: '(' typeuse_locals_body1 { $2 }
| ')' { (AnonimousTypeUse $ FuncType [] [], [], []) }
typeuse_locals_body1 :: { (TypeUse, [LocalType], [Instruction]) }
: 'type' typeidx ')' signature_locals_body { (IndexedTypeUse $2 (t3fst $4), t3snd $4, t3thd $4) }
| signature_locals_body1 { (AnonimousTypeUse (fromMaybe emptyFuncType $ t3fst $1), t3snd $1, t3thd $1) }