mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add recognition and classification of WebAssembly (#3650)
This commit is contained in:
14
samples/WebAssembly/add.wat
Normal file
14
samples/WebAssembly/add.wat
Normal file
@@ -0,0 +1,14 @@
|
||||
(module
|
||||
(import "env" "printInt" (func $printInt (param i32)))
|
||||
(func $add (param $lhs i32) (param $rhs i32) (result i32)
|
||||
get_local $lhs
|
||||
get_local $rhs
|
||||
i32.add
|
||||
)
|
||||
|
||||
(func $main
|
||||
(call $printInt
|
||||
(call $add (i32.const 9) (i32.const 8))))
|
||||
|
||||
(export "main" (func $main))
|
||||
)
|
||||
Reference in New Issue
Block a user