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

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.

主站蜘蛛池模板: 凤庆县| 钦州市| 肇东市| 绥宁县| 裕民县| 桐乡市| 保德县| 本溪市| 曲靖市| 宜章县| 东海县| 阿鲁科尔沁旗| 建始县| 桂平市| 琼结县| 博罗县| 秦皇岛市| 巴青县| 鄢陵县| 庄河市| 岳普湖县| 菏泽市| 祁东县| 蛟河市| 广宁县| 商城县| 平利县| 循化| 桐城市| 崇仁县| 来凤县| 长宁区| 长岛县| 开封县| 历史| 塘沽区| 双鸭山市| 青铜峡市| 钟山县| 武夷山市| 孟州市|