官术网_书友最值得收藏!

Values, types, and instructions

Although detailed coverage of the Text Format section of the Core Specification is out of the scope of this text, it's worth demonstrating how some of the language concepts map to the corresponding Wat. The following diagram demonstrates these mappings in a sample Wat snippet. The C code that this was compiled from represents a function that takes a word as a parameter and returns the square root of the character count:

Wat example with language concept details

If you intend on writing or editing Wat, note that it supports block and line comments. The instructions are split up into blocks and consist of setting and getting memory associated with variables with valid types. You are able to control the flow of logic using if statements and loops are supported using the loop keyword.

主站蜘蛛池模板: 旬邑县| 闻喜县| 惠水县| 于田县| 延寿县| 苍南县| 隆德县| 包头市| 龙南县| 祁阳县| 方城县| 恩平市| 辽宁省| 深泽县| 竹北市| 昌平区| 庄浪县| 耿马| 嫩江县| 炎陵县| 财经| 郴州市| 铁岭市| 中超| 远安县| 砀山县| 北川| 略阳县| 新津县| 分宜县| 泾川县| 溧水县| 铜川市| 鄯善县| 齐河县| 伊宁市| 怀远县| 扶沟县| 琼中| 瑞金市| 理塘县|