supcode
所属分类:编程语言基础
开发工具:CoffeeScript
文件大小:0KB
下载次数:0
上传日期:2023-08-18 05:58:19
上 传 者:
sh-1993
说明: 由Sup#2.0创建的概念编程语言,
(A conceptual programming language created by Sup#2.0,)
文件列表:
supcode-sup/ (0, 2023-08-22)
supcode-sup/archive/ (0, 2023-08-22)
supcode-sup/archive/extensions.md (244, 2023-08-22)
supcode-sup/archive/syntax.md (1095, 2023-08-22)
supcode-sup/docs/ (0, 2023-08-22)
supcode-sup/docs/assets/ (0, 2023-08-22)
supcode-sup/docs/assets/cortex.violet.jpg (2053438, 2023-08-22)
supcode-sup/docs/assets/sup.png (55840, 2023-08-22)
supcode-sup/docs/essence.css (1551, 2023-08-22)
supcode-sup/docs/index.html (731, 2023-08-22)
supcode-sup/extensions/ (0, 2023-08-22)
supcode-sup/extensions/endextensions/ (0, 2023-08-22)
supcode-sup/extensions/extextensions/ (0, 2023-08-22)
supcode-sup/extensions/ixtensions/ (0, 2023-08-22)
supcode-sup/extensions/ixtensions/calcix/ (0, 2023-08-22)
supcode-sup/extensions/ixtensions/constructix/ (0, 2023-08-22)
supcode-sup/extensions/ixtensions/constructix/specimens/ (0, 2023-08-22)
supcode-sup/extensions/ixtensions/constructix/specimens/list construction (426, 2023-08-22)
supcode-sup/extensions/ixtensions/stadex/ (0, 2023-08-22)
supcode-sup/resources/ (0, 2023-08-22)
supcode-sup/resources/Nova/ (0, 2023-08-22)
supcode-sup/resources/Nova/colours.json (1482, 2023-08-22)
supcode-sup/resources/Nova/fonts.md (178, 2023-08-22)
supcode-sup/resources/assets/ (0, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/ (0, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/1.png (1537626, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/10.png (1682900, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/11.png (454124, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/12.png (1761831, 2023-08-22)
supcode-sup/resources/assets/supcode 4.0/2.png (4095459, 2023-08-22)
... ...
# supcode
```coffee
prompt.open()
prompt.out("sup world!")
```
## Introduction
**Supcode** (stylised *supcode*) is a general-purpose text-based programming language created by [Sup#2.0](https://github.com/Sup2point0) under 2.0 Studios. It is largely based on [Scratch](https://scratch.mit.edu), [Python](https://python.org) and [Wikitext](https://mediawiki.org/wiki/Wikitext), and is itself programmed in the Origin 2 base programming language. The current major version is supcode 5.0, with the latest major release being supcode 5.7.
supcode 5.0 |
official name |
supcode |
format |
text-based |
level |
high-level |
execution |
interpreted |
paradigm |
multi-paradigm – imperative, event-driven, multi-threaded |
purpose |
general-purpose – games, programs, scripts |
syntax |
human-friendly – readable, intuitive, keyword-focused |
type |
dynamic |
indentation |
significant |
platform |
any |
programmed in |
Origin 2 |
based on |
Scratch, Python |
loosely based on |
Wikitext Markup, Swift, HTML |
filename extensions |
.sc , .sc5 , .scx |
other extensions |
.scd , .scp , .scv , .scl , .scs , .scg |
main flavour |
Utinax One |
other flavours |
Veritinax One, Resinax 1.6 |
initial release |
September 2021 |
founder |
Sup#2.0 |
developer |
2.0 Studios (2.0 Studios LLC) |
IDEs |
supcode Studio, supcode Studio Strium |
latest release |
5.7 (July 2023) |
### Aims and Improvements
Supcode is designed to be intuitive, readable, and versatile.
As a bridge of sorts between the block-based environment of Scratch and proper text-based programming languages, its structure and syntax are fairly similar. In particular, it follows a logical flow...
Supcode comes with powerful customisability and convenient shortcuts. Like Scratch, there is an extensive assortion of [extensions](extensions), both [internal](extensions/ixtensions) and [external](extensions), to allow for limitless specialisation and applications.
### Files and Applications
Supcode files use the `.sc` filename extension. Often, this has a number following it to indicate the version number (`.sc4`, `.sc5`, etc.). Extensions use the `.scx` file extension. There are also a several other file extensions for specialised cases, such as `.scd` or `.scv`, though these are rarely used.
## Specimens
```coffee
\ supcode 5.7
create struct 'SoupMachine' {
evolve func self.create(ctx) [
| num 'cost'
| str 'name' = none
| (str)s 'flavours' = ()
] {
set self.'cost' = cost
set self.'name' = { if name then name else ctx.shard.str }
set self.'flavours' = { loop for each in flavours || case(each)[lower] }
}
define self.purchase() [
| source
| int 'count' = 1
| pool[self.flavours] 'flavour' = none
] {
if count < 1 {
evoke "Can’t give that many bowls of soup!"
}
if not flavour {
set 'flavour' = random(self.flavours)[option]
}
alt source - self.cost * count
func.out("Here’s some flavour` soup!")
}
}
set 'credits' = 200
set 'soupy' = SoupMachine() [
| cost = 20
| flavours = "tomato", "mushroom", "potato"
]
sys.out(soupy.purchase(credits, 1, "mushroom"))
```
More specimens can be found [here](specimens).
近期下载者:
相关文件:
收藏者: