lumos-language 1.1.0 → 1.1.2

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.
@@ -0,0 +1,2 @@
1
+ github: "Uchida16104"
2
+ open_collective: "lumos-language"
package/README.md CHANGED
@@ -19,46 +19,123 @@ Lumos is influenced by
19
19
 
20
20
  - Variable Declaration:
21
21
  <ul>
22
- <li><code>let x = 5</code></li>
22
+ <li>
23
+
24
+ let x = 5
25
+
26
+ </li>
23
27
  </ul>
24
28
  - Function Definition:
25
29
  <ul>
26
- <li><code>def greet(name) { let message = "Hello," + name }</code></li>
30
+ <li>
31
+
32
+ def greet(name) { let message = "Hello," + name }
33
+
34
+ </li>
27
35
  </ul>
28
36
  - Function Invocation:
29
37
  <ul>
30
- <li><code>greet("Bob")</code></li>
38
+ <li>
39
+
40
+ greet("Bob")
41
+
42
+ </li>
31
43
  </ul>
32
44
  - Control Structures:
33
45
  <ul>
34
- <li><code>for i = 1 to 5 { let square = i * i }</code></li>
35
- <li><code>while (x < 10) { let x = x + 1 }</code></li>
36
- <li><code>3.times do |i| {i} end</code>
46
+ <li>
47
+
48
+ for i = 1 to 5 { let square = i * i }
49
+
50
+ </li>
51
+ <li>
52
+
53
+ while (x < 10) { let x = x + 1 }
54
+
55
+ </li>
56
+ <li>
57
+
58
+ 3.times do |i| {i} end
59
+
60
+ </li>
37
61
  </ul>
38
62
  - Conditional branch:
39
63
  <ul>
40
- <li><code>if (x == 10) { let status = "Done" } else { let status = "Not yet" }</code></li>
41
- <li><code>if (x == 10) { let status = "Done" } elsif (x == 20) { let status = "Already" } else { let status = "Not yet" }</code></li>
64
+ <li>
65
+
66
+ if (x == 10) { let status = "Done" } else { let status = "Not yet" }
67
+
68
+ </li>
69
+ <li>
70
+
71
+ if (x == 10) { let status = "Done" } elsif (x == 20) { let status = "Already" } else { let status = "Not yet" }
72
+
73
+ </li>
42
74
  </ul>
43
75
  - Break and Continue:
44
76
  <ul>
45
- <li><code>break</code></li>
46
- <li><code>continue</code></li>
77
+ <li>
78
+
79
+ break
80
+
81
+ </li>
82
+ <li>
83
+
84
+ continue
85
+
86
+ </li>
47
87
  </ul>
48
88
  - Launch from your terminal:
49
89
  <ol>
50
- <li><code>cd path/to/lumos-language</code></li>
51
- <li><code>node index.cjs</code></li>
90
+ <li>
91
+
92
+ npm i lumos-language
93
+
94
+ </li>
95
+ <li>
96
+
97
+ cd path/to/lumos-language
98
+
99
+ </li>
100
+ <li>
101
+
102
+ node index.cjs
103
+
104
+ </li>
52
105
  </ol>
53
106
  - Compile on your terminal:
54
107
  <ol>
55
- <li><code>cd path/to/lumos-language</code></li>
56
- <li><code>node index.cjs main.lumos</code></li>
108
+ <li>
109
+
110
+ npm i lumos-language
111
+
112
+ </li>
113
+ <li>
114
+
115
+ cd path/to/lumos-language
116
+
117
+ </li>
118
+ <li>
119
+
120
+ node index.cjs main.lumos
121
+
122
+ </li>
57
123
  </ol>
58
124
 
59
125
  ## Caution
60
126
 
61
127
  - Please write the code in a single line and don't execute it while writing.
128
+ - When installing Lumos Language, don't use
129
+
130
+ <code>npm install @uchida16104/lumos-language</code>
131
+
132
+ but instead use
133
+
134
+ ```shellscript
135
+ npm i lumos-language
136
+ ```
137
+
138
+ in the terminal.
62
139
 
63
140
  ## Change
64
141
  - You can refer to [npm](https://www.npmjs.com/package/lumos-language) or [GitHub Releases](https://github.com/Uchida16104/Lumos-Language/releases).
@@ -66,4 +143,4 @@ Lumos is influenced by
66
143
  ## More Info
67
144
  Get from <strong><a href="https://cdn.glitch.global/a6e15949-0cae-4ce8-a653-5883a6d0adc5/Lumos.pdf?v=1748869028196">pdf</a></strong>.
68
145
 
69
- 2025 © Hirotoshi Uchida
146
+ 2025 © <a href="https://hirotoshiuchida.glitch.me">Hirotoshi Uchida</a>
package/index.html CHANGED
@@ -77,6 +77,7 @@
77
77
  <img src="https://cdn.glitch.global/a6e15949-0cae-4ce8-a653-5883a6d0adc5/Lumos.png?v=1748865997035" />
78
78
  <h1>Lumos Language</h1>
79
79
  </div>
80
+ <h4>Press Enter / Return to execute your code.</h4>
80
81
  <input type="text" id="input" placeholder="Enter command..." />
81
82
  <button id="compileButton">Compile</button>
82
83
  <br />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lumos-language",
3
- "version": "1.1.0",
4
- "description": "Lumos - Interactive CLI",
3
+ "version": "1.1.2",
4
+ "description": "Lumos Language - Interactive CLI",
5
5
  "main": "./index.cjs",
6
6
  "bin": {
7
7
  "lumos": "./index.cjs"