QLTYE
Jump to navigation
Jump to search
- This is the english version of User:PrySigneToFry/Silicon_dioxide_in_a_polypropylene_box/QLTYLang.
- This page will keep update with the original page.
QLTYLang is an advanced language. It combined User:LynChern's "xxx-lang"'s first draft and the charasterics of 中文(简体,中国大陆) and a language The Second Coming created by PSTF (是的我并不是PSTF本人).
Examples
(ps. why put examples first?)
Hello, World!
输出 『Hello, World!』
Numeric machine
定义 x 为 输入
x 为 整型
x 为 向下取整(绝对值(x))
如果 x 等于 0 执行:
只要 真 执行:
输出 0
没了
否则 执行:
重复执行 x 次:
输出 x
没了
没了
Basic information
In the default circumstance, QLTYLang supports alll characters from printable ASCII (with space and \n) and all characters from 《通用规范汉字表》.
You may choose which chaaracter set(s) QLTYLang would support on installation. Normally, QLTYLang would support these sets:
- Default: printable ASCII and all characters from 《通用规范汉字表》 (except traditional characters/abnormal characters)
- European: printable ASCII+ISO-8859-1 and all characters from
- Latin A
- Latin B
- IPA extensions
- Combining Diacritical Marks
- Greek
- Spacing Modifier Letters
- Cyrillic
- 《通用规范汉字表》 (except traditional characters/abnormal characters)
- Traditional: printable ASCII and all characters from GB/T 2312 信息交换用汉字编码字符集(基本集) and GB/T 12345 信息交换用汉字编码字符集(辅助集)
- CJK: printable ASCII and all characters from
- GB/T 2312 信息交换用汉字编码字符集(基本集)
- GB/T 12345 信息交换用汉字编码字符集(辅助集)
- GB 7589-87 信息交换用汉字编码字符集(第二辅助集)
- GB/T 13131 信息交换用汉字编码字符集(第三辅助集)
- GB 7590-87 信息交换用汉字编码字符集(第四辅助集)
- GB/T 13132 信息交换用汉字编码字符集(第五辅助集)
- GB/T 16500-1998 信息交换用汉字编码字符集(第七辅助集)
- GB/T 12052-1989 信息交换用朝鲜文字编码字符集
- GB/T 16500-1998 信息交换用汉字编码字符集(第七辅助集)
- GB/T 15564-1995 图文电视广播用汉字编码字符集 香港子集
- 大五码常用字
- 大五码次常用字
- JIS X 0213 (Level 1 and Level 2) 7ビット及び8ビットの2バイト情報交換符号化拡張漢字集合(第1水準と第2水準)
- JIS X 0213 (Level 3) 7ビット及び8ビットの2バイト情報交換符号化拡張漢字集合(第3水準)
- JIS X 0213 (Level 4) 7ビット及び8ビットの2バイト情報交換符号化拡張漢字集合(第4水準)
- KS X 1001 정보 교환용 부호계 (한글 및 한자)
- KS X 1027 확장 한자 목록
- Also includes All Hiraganas and Katakanas(excludes extended), all Hangul Jamo and Jamo components, and CJK punctuation.
- Unicode: All "printable Unicode"
We use GB18030 by default, but you may choose other encodings like UTF-8.
QLTYLang code is made up by 3 parts:
- keywords
- identifiers
- literals
Keywords
Keywords have important meaning in programming languages. They can't be used as identifiers.
Usage of some common keywords are shown below:
如果 condition 执行:
# input code here
没了
只要 condition 执行:
# input code here
没了
重复执行 n 次:
# input code here that will be repeated n times
没了
对于 iterable 的 item 执行:
# input code here that will be applied on ever item of iterable
没了