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