Skip to content

Commit 13c3f76

Browse files
committed
Merge pull request #62 from binji/readme-memory-segment
Update memory/segment definition in README
2 parents 82d273b + 356d018 commit 13c3f76

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ml-proto/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,18 @@ param: ( param <type>* ) | ( param <name> <type> )
194194
result: ( result <type> )
195195
local: ( local <type>* ) | ( local <name> <type> )
196196
197-
module: ( module <func>* <global>* <import>* <export>* <table>* <memory>? <data>* )
198-
import: ( import <name>? "<module_name>" "<func_name>" (param <type>* ) (result <type>)* )
199-
export: ( export "<char>*" <var> )
200-
global: ( global <type>* ) | ( global <name> <type> )
201-
table: ( table <var>* )
202-
memory: ( memory <int> <int>? )
203-
data: ( data "<char>*" )
197+
module: ( module <func>* <global>* <import>* <export>* <table>* <memory>? )
198+
import: ( import <name>? "<module_name>" "<func_name>" (param <type>* ) (result <type>)* )
199+
export: ( export "<char>*" <var> )
200+
global: ( global <type>* ) | ( global <name> <type> )
201+
table: ( table <var>* )
202+
memory: ( memory <int> <int>? <segment>* )
203+
segment: ( segment <int> "<char>*" )
204204
```
205205

206206
Here, productions marked with respective comments are abbreviation forms for equivalent expansions.
207207

208-
The data string is used to initialise the lower end of the memory. It is an ASCII string, that can have the usual escape sequences, or hex escapes of the form `\xx` to denote a single byte.
208+
The segment string is used to initialize the memory at the given offset.
209209

210210
Comments can be written in one of two ways:
211211

0 commit comments

Comments
 (0)