lumos-language 1.0.0 → 1.0.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.md +53 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Lumos
|
|
2
|
+
|
|
3
|
+
<img src="https://cdn.glitch.global/a6e15949-0cae-4ce8-a653-5883a6d0adc5/Lumos.png?v=1748865997035" />
|
|
4
|
+
|
|
5
|
+
Lumos is a lightweight, beginner-friendly interpreted programming language designed for learning, experimentation, and scripting.
|
|
6
|
+
|
|
7
|
+
## Influences
|
|
8
|
+
|
|
9
|
+
Lumos is influenced by
|
|
10
|
+
|
|
11
|
+
- Python
|
|
12
|
+
- JavaScript
|
|
13
|
+
- BASIC
|
|
14
|
+
- ShellScript
|
|
15
|
+
|
|
16
|
+
## Available
|
|
17
|
+
|
|
18
|
+
- Variable Declaration:
|
|
19
|
+
<ul>
|
|
20
|
+
<li><code>let x = 5</code></li>
|
|
21
|
+
</ul>
|
|
22
|
+
- Function Definition:
|
|
23
|
+
<ul>
|
|
24
|
+
<li><code>def greet(name) { let message = "Hello," + name }</code></li>
|
|
25
|
+
</ul>
|
|
26
|
+
- Function Invocation:
|
|
27
|
+
<ul>
|
|
28
|
+
<li><code>greet("Bob")</code></li>
|
|
29
|
+
</ul>
|
|
30
|
+
- Control Structures:
|
|
31
|
+
<ul>
|
|
32
|
+
<li><code>for i = 1 to 5 { let square = i * i }</code></li>
|
|
33
|
+
<li><code>while (x < 10) { let x = x + 1 }</code></li>
|
|
34
|
+
</ul>
|
|
35
|
+
- Conditional branch:
|
|
36
|
+
<ul>
|
|
37
|
+
<li><code>if (x == 10) { let status = "Done" } else { let status = "Not yet" }</code></li>
|
|
38
|
+
<li><code>if (let x == 10) { let status = "Done" } elsif (let x == 20) { let status = "Already" } else { let status = "Not yet" }</code></li>
|
|
39
|
+
</ul>
|
|
40
|
+
- Break and Continue:
|
|
41
|
+
<ul>
|
|
42
|
+
<li><code>break</code></li>
|
|
43
|
+
<li><code>continue</code></li>
|
|
44
|
+
</ul>
|
|
45
|
+
|
|
46
|
+
## Caution
|
|
47
|
+
|
|
48
|
+
- Please write the code in a single line and don't execute it while writing.
|
|
49
|
+
|
|
50
|
+
## More Info
|
|
51
|
+
Get from <strong><a href="https://cdn.glitch.global/a6e15949-0cae-4ce8-a653-5883a6d0adc5/Lumos.pdf?v=1748869028196">pdf</a></strong>.
|
|
52
|
+
|
|
53
|
+
2025 © Hirotoshi Uchida
|