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

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.

主站蜘蛛池模板: 寿宁县| 三明市| 水城县| 商洛市| 徐闻县| 平原县| 临海市| 潼关县| 祥云县| 荆门市| 报价| 温州市| 青州市| 富蕴县| 大埔县| 沙雅县| 京山县| 栾川县| 周至县| 繁昌县| 迭部县| 大石桥市| 洱源县| 安多县| 襄樊市| 新乡市| 平山县| 卫辉市| 日照市| 老河口市| 常宁市| 佛山市| 津市市| 湛江市| 安陆市| 固镇县| 通道| 惠东县| 江阴市| 交城县| 大荔县|