打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

用户:LynChern/Sandbox:修订间差异

来自 LNN的:not(博客)?
LynChern留言 | 贡献
无编辑摘要
LynChern留言 | 贡献
无编辑摘要
第89行: 第89行:


=代码段=
=代码段=
==引入==
 
=引入=


=函数=
=函数=

2026年4月20日 (一) 03:47的版本

Why is this page primarily written in a non-English language?

A good reason for this is that the command keywords of this programming language consist mostly of Chinese characters, and its users are generally capable of recognizing Chinese.There are plans to release an English version of the language and its compiler in the future.

talks

This article is undergoing frequent debugging within a sandbox. If you wish to contact the author, please leave a message on my talk page to discuss this.

The name of this language

Please note that the name of this language is not "xxx语". In fact, this language does not have any official name now. If you are using a translator, referring to this language as "XXX" is incorrect

本文尚未完工!

该语言当前处于构想阶段,有较多内容还未完全确立。目前主要以概念形式表达,具体的语法正在设计。

本文格式

> 代表注释。在本文最终完工时,所有注释都会被移除。

当注释被使用时,代表本段内容的设计很可能在未来作出更改。

简介

xxx语是一门高级编程语言,声明式语言

> 是的,我们连名字都未想好

特点

代码预览

图灵完备证明

该代码可以模拟一个[[]],证明了本语言是图灵完备的。

> 这个章节不可能叫图灵完备证明,届时会更名为图灵机的名字。

运行xxx语程序

要运行使用xxx语编写的程序,预期的用途是将源代码作为编译器的输入,从而被编译成可执行的目标语言的代码。

Python编译器

将Python视为机器码的编译器。

[[解释器资源地址|Python实现]]

> 等待开发计划

WhatLang编译器

将WhatLang视为机器码的编译器。

[[解释器资源地址|Python实现]]

> 等待开发计划

自编译器

使用xxx语表达编译器程序不是本语言的强项,实现有一定难度。在一段时间内,语言的设计者认为没有必要开发。

基本语法

  • 关键字
  • 标识符
  • 字面量

关键字包含在其他语言中通常被称为运算符与结构符的词元。

> todo


数据类型

原子类型 int bool float enum 结构类型 arrary 自动类型推断 自动类型转换

> todo

常量

代码段

引入

函数

普通函数

写法

调用

标准库

偏函数

写法

调用

返回值函数

写法

调用

表达式

分支

变量

循环

面向对象

错误处理

里面有什么?

本章介绍编译器在编译时内部会发生什么。

> todo