sleepy-rustaceans-lang

时间:2021-04-09 06:54:39
【文件属性】:
文件名称:sleepy-rustaceans-lang
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-09 06:54:39
Rust 语言设计-版本1 举例说明。 不正式,但足以使您入门。 主意: 数值由一系列数字字描述 基本数学运算符 基本控制流程 显式变量声明 类型是整数和分数 用初始值声明变量 define integer w as negative nine define integer r as one seven define fraction f as two three over five define integer k Var必须具有值才能读取 数学运算和赋值语句 将两个放入k add three and eight into x subtract four from nine into y add two four and x into x multiply one one by three into y max of x and y and one two into m 将负五和
【文件预览】:
sleepy-rustaceans-lang-master
----Cargo.toml(454B)
----tests.txt(235B)
----Cargo.lock(12KB)
----src()
--------types.rs(2KB)
--------main.rs(2KB)
--------lang.l(527B)
--------executer.rs(99B)
--------analyzer.rs(2KB)
--------lang.y(4KB)
----build.rs(386B)
----README.md(2KB)
----.gitignore(8B)

网友评论