purus 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -2
- package/README-ja.md +58 -0
- package/README.md +58 -0
- package/lib/purus-core.js +1 -1
- package/package.json +4 -2
package/LICENSE
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
Apache License
|
|
3
2
|
Version 2.0, January 2004
|
|
4
3
|
http://www.apache.org/licenses/
|
|
@@ -187,7 +186,7 @@
|
|
|
187
186
|
same "printed page" as the copyright notice for easier
|
|
188
187
|
identification within third-party archives.
|
|
189
188
|
|
|
190
|
-
Copyright [
|
|
189
|
+
Copyright [2026] [otoneko.]
|
|
191
190
|
|
|
192
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
192
|
you may not use this file except in compliance with the License.
|
package/README-ja.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
[](https://purus.work)
|
|
4
|
+
|
|
5
|
+
[English](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/README.md) | **日本語**
|
|
6
|
+
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/purus)
|
|
12
|
+
[](https://www.npmjs.com/package/purus)
|
|
13
|
+
[](https://github.com/otoneko1102/purus/pulse)
|
|
14
|
+
[](https://github.com/otoneko1102/purus/commits/main)
|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
Purus — _/ˈpuː.rus/_ _**ラテン語で 純粋✨**_ — は、美しく、シンプルで、使いやすいプログラミング言語です。_JavaScript_ にコンパイルされます。
|
|
19
|
+
|
|
20
|
+
**あなたの指を _Shiftキー_ から解放します。**
|
|
21
|
+
|
|
22
|
+
Purusは、 _Shiftキー_ をほとんど押さずにプログラミングできます。
|
|
23
|
+
|
|
24
|
+
インストール:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
# Global
|
|
28
|
+
npm install -g purus
|
|
29
|
+
|
|
30
|
+
# or Local
|
|
31
|
+
npm install -D purus
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## ファイル拡張子
|
|
35
|
+
|
|
36
|
+
| 拡張子 | 出力 |
|
|
37
|
+
| --------- | ------ |
|
|
38
|
+
| `.purus` | `.js` |
|
|
39
|
+
| `.cpurus` | `.cjs` |
|
|
40
|
+
| `.mpurus` | `.mjs` |
|
|
41
|
+
|
|
42
|
+
## ツール
|
|
43
|
+
|
|
44
|
+
- **VS Code 拡張機能** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): シンタックスハイライト、スニペット、ファイルアイコン
|
|
45
|
+
- **リンター** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Purus の静的解析
|
|
46
|
+
- **Prettier プラグイン** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): コードフォーマッター
|
|
47
|
+
|
|
48
|
+
## ドキュメント
|
|
49
|
+
|
|
50
|
+
ドキュメントは [purus.work](https://purus.work) で確認できます。
|
|
51
|
+
|
|
52
|
+
## 著者
|
|
53
|
+
|
|
54
|
+
otoneko. https://github.com/otoneko1102
|
|
55
|
+
|
|
56
|
+
## ライセンス
|
|
57
|
+
|
|
58
|
+
Apache 2.0 ライセンスに基づいて配布されます。詳細については、[LICENSE](./LICENSE) を参照してください。
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
[](https://purus.work)
|
|
4
|
+
|
|
5
|
+
**English** | [日本語](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/README-ja.md)
|
|
6
|
+
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/purus)
|
|
12
|
+
[](https://www.npmjs.com/package/purus)
|
|
13
|
+
[](https://github.com/otoneko1102/purus/pulse)
|
|
14
|
+
[](https://github.com/otoneko1102/purus/commits/main)
|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
Purus - _/ˈpuː.rus/_ _**means pure✨ in Latin**_ - is a beautiful, simple, and easy-to-use language. It compiles to _JavaScript_.
|
|
19
|
+
|
|
20
|
+
**It makes your fingers free from the _Shift key_.**
|
|
21
|
+
|
|
22
|
+
With Purus, you can write code almost without pressing the _Shift key_.
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
# Global
|
|
28
|
+
npm install -g purus
|
|
29
|
+
|
|
30
|
+
# or Local
|
|
31
|
+
npm install -D purus
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## File Extensions
|
|
35
|
+
|
|
36
|
+
| Extension | Output |
|
|
37
|
+
| --------- | ------ |
|
|
38
|
+
| `.purus` | `.js` |
|
|
39
|
+
| `.cpurus` | `.cjs` |
|
|
40
|
+
| `.mpurus` | `.mjs` |
|
|
41
|
+
|
|
42
|
+
## Tooling
|
|
43
|
+
|
|
44
|
+
- **VS Code Extension** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): Syntax highlighting, snippets, file icons
|
|
45
|
+
- **Linter** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Static analysis for Purus
|
|
46
|
+
- **Prettier Plugin** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): Code formatting
|
|
47
|
+
|
|
48
|
+
## Documentation
|
|
49
|
+
|
|
50
|
+
The documentation is available on [purus.work](https://purus.work).
|
|
51
|
+
|
|
52
|
+
## Author
|
|
53
|
+
|
|
54
|
+
otoneko. https://github.com/otoneko1102
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
Distributed under the Apache 2.0 License. See [LICENSE](./LICENSE) for more information.
|
package/lib/purus-core.js
CHANGED
|
@@ -11,7 +11,7 @@ const { execFileSync } = require("child_process");
|
|
|
11
11
|
const path = require("path");
|
|
12
12
|
|
|
13
13
|
const COMPILER_JS = path.join(__dirname, "purus-compiler.js");
|
|
14
|
-
const VERSION = "
|
|
14
|
+
const VERSION = require("../package.json").version;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Compile Purus source code to JavaScript.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A language that compiles to JavaScript — no Shift key required",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"index.mjs",
|
|
19
19
|
"bin/",
|
|
20
20
|
"lib/",
|
|
21
|
-
"LICENSE"
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"README.md",
|
|
23
|
+
"README-ja.md"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"build:compiler": "moon build --target js",
|