purus 0.8.0 → 0.8.1
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/README-ja.md +7 -0
- package/README.md +7 -0
- package/lib/purus-compiler.js +6 -6
- package/package.json +2 -2
package/README-ja.md
CHANGED
|
@@ -25,6 +25,13 @@ Purus — _/ˈpuː.rus/_ _**ラテン語で 純粋✨**_ — は、美しく、
|
|
|
25
25
|
|
|
26
26
|
Purusは、 _Shiftキー_ をほとんど押さずにプログラミングできます。
|
|
27
27
|
|
|
28
|
+
```purus
|
|
29
|
+
let name
|
|
30
|
+
name be ///Purus///
|
|
31
|
+
const message be ///Welcome to [name]!///
|
|
32
|
+
console.log[message] -- Welcome to Purus!
|
|
33
|
+
```
|
|
34
|
+
|
|
28
35
|
## インストール
|
|
29
36
|
|
|
30
37
|
```sh
|
package/README.md
CHANGED
|
@@ -25,6 +25,13 @@ Purus - _/ˈpuː.rus/_ _**means pure✨ in Latin**_ - is a beautiful, simple, an
|
|
|
25
25
|
|
|
26
26
|
With Purus, you can write code almost without pressing the _Shift key_.
|
|
27
27
|
|
|
28
|
+
```purus
|
|
29
|
+
let name
|
|
30
|
+
name be ///Purus///
|
|
31
|
+
const message be ///Welcome to [name]!///
|
|
32
|
+
console.log[message] -- Welcome to Purus!
|
|
33
|
+
```
|
|
34
|
+
|
|
28
35
|
## Install
|
|
29
36
|
|
|
30
37
|
```sh
|
package/lib/purus-compiler.js
CHANGED
|
@@ -276,9 +276,9 @@ const _M0DTP28username4core9TokenKind7Match____ = new _M0DTP28username4core9Toke
|
|
|
276
276
|
function _M0DTP28username4core9TokenKind6When__() {}
|
|
277
277
|
_M0DTP28username4core9TokenKind6When__.prototype.$tag = 44;
|
|
278
278
|
const _M0DTP28username4core9TokenKind6When____ = new _M0DTP28username4core9TokenKind6When__();
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
const
|
|
279
|
+
function _M0DTP28username4core9TokenKind8Switch__() {}
|
|
280
|
+
_M0DTP28username4core9TokenKind8Switch__.prototype.$tag = 45;
|
|
281
|
+
const _M0DTP28username4core9TokenKind8Switch____ = new _M0DTP28username4core9TokenKind8Switch__();
|
|
282
282
|
function _M0DTP28username4core9TokenKind6Case__() {}
|
|
283
283
|
_M0DTP28username4core9TokenKind6Case__.prototype.$tag = 46;
|
|
284
284
|
const _M0DTP28username4core9TokenKind6Case____ = new _M0DTP28username4core9TokenKind6Case__();
|
|
@@ -3557,8 +3557,8 @@ function _M0MP28username4core5Lexer11scan__ident(self) {
|
|
|
3557
3557
|
kind = _M0DTP28username4core9TokenKind6When____;
|
|
3558
3558
|
break;
|
|
3559
3559
|
}
|
|
3560
|
-
case "
|
|
3561
|
-
kind =
|
|
3560
|
+
case "switch": {
|
|
3561
|
+
kind = _M0DTP28username4core9TokenKind8Switch____;
|
|
3562
3562
|
break;
|
|
3563
3563
|
}
|
|
3564
3564
|
case "case": {
|
|
@@ -10049,7 +10049,7 @@ function _M0FP48username4core3cmd4main10cmd__build(args) {
|
|
|
10049
10049
|
}
|
|
10050
10050
|
}
|
|
10051
10051
|
const stmts = _M0MP28username4core6Parser5parse(_M0MP28username4core6Parser3new(filtered));
|
|
10052
|
-
const header = no_header.val ? "" : "// Generated by Purus 0.8.
|
|
10052
|
+
const header = no_header.val ? "" : "// Generated by Purus 0.8.1";
|
|
10053
10053
|
const js = _M0MP28username4core9JsCodegen16generate_2einner(_M0MP28username4core9JsCodegen11new_2einner(cjs.val), stmts, header, shebang.val, strict.val);
|
|
10054
10054
|
if (to_stdout.val) {
|
|
10055
10055
|
_M0FPB7printlnGsE(js);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purus",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "Purus - /ˈpuː.rus/ means pure✨ in Latin - is a beautiful, simple, and easy-to-use language. It compiles to JavaScript. It makes your fingers free from the Shift key. With Purus, you can write code almost without pressing the Shift key.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
7
7
|
"types": "index.d.ts",
|