1// hello world 2 3interface conventions { 4 kebab-case: func() 5 6 record ludicrous-speed { 7 how-fast-are-you-going: u32, 8 i-am-going-extremely-slow: u64, 9 } 10 11 foo: func(x: ludicrous-speed) 12 %function-with-dashes: func() 13 %function-with-no-weird-characters: func() 14 15 apple: func() 16 apple-pear: func() 17 apple-pear-grape: func() 18 a0: func() 19 20 // Comment out identifiers that collide when mapped to snake_case, for now; see 21 // https://github.com/WebAssembly/component-model/issues/118 22 //APPLE: func() 23 //APPLE-pear-GRAPE: func() 24 //apple-PEAR-grape: func() 25 26 is-XML: func() 27 28 %explicit: func() 29 %explicit-kebab: func() 30 31 // Identifiers with the same name as keywords are quoted. 32 %bool: func() 33} 34 35world the-world { 36 import imports: conventions 37 export exports: conventions 38 default export conventions 39} 40