Skip to content

Commit 22584e6

Browse files
committed
Preprocessor: add references to the Wasm standards
1 parent fd68ee9 commit 22584e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compiler/lib-wasm/wat_preprocess.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ let report_error loc msg =
99

1010
(****)
1111

12+
(*
13+
See the WebAssembly Text Format Specification:
14+
https://webassembly.github.io/spec/core/text/index.html
15+
16+
We use custom annotations to extend the syntax
17+
(https://github.com/WebAssembly/annotations).
18+
*)
19+
1220
let digit = [%sedlex.regexp? '0' .. '9']
1321

1422
let hexdigit = [%sedlex.regexp? '0' .. '9' | 'a' .. 'f' | 'A' .. 'F']

0 commit comments

Comments
 (0)