Skip to content

Commit

Permalink
Singkong Programming Language (v10.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopri committed Nov 22, 2024
1 parent e0fdea4 commit ab9cb4f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
Binary file modified Singkong-help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Singkong.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion Singkong.jar.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1ee2224382ec1801b62a55bd07819d2 Singkong.jar
6c532913a7e37fb5770ffa2ab0e8204f Singkong.jar
12 changes: 10 additions & 2 deletions Singkong.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Singkong Programming Language Interpreter
(c) Noprianto <[email protected]>, 2019-2024
Website: nopri.github.io
License: Free to use or redistribute, no warranty
Version: 10.1 (2024-November-13 +07:00)
Version: 10.2 (2024-November-22 +07:00)

Singkong is based on Monkey.java: an open source, simple implementation of
Monkey programming language interpreter in Java.
Expand Down Expand Up @@ -104,7 +104,7 @@ built-in functions, please set -DDISABLE=-.
- No command line argument: interactive
java -jar Singkong.jar

Singkong 10.1
Singkong 10.2
Press ENTER to quit
> var hello = "Hello World"
> hello
Expand Down Expand Up @@ -3811,6 +3811,8 @@ To bundle application file with Singkong interpreter:
- To evaluate/run Singkong code (file in current working directory or
(if failed), /resource/<value> in interpreter file), please use
built-in function load_file_or_resource
- To read /resource/<value> in interpreter file (as text file), please use
built-in function read


-----------------------------------------------------------------------------
Expand Down Expand Up @@ -4727,6 +4729,12 @@ show()
-----------------------------------------------------------------------------

30. Changelog
Version: 10.2 (2024-November-22 +07:00)
- 350 built-in functions
- 9 built-in modules
- Built-in: read: optionally read
/resource/<value> in interpreter file

Version: 10.1 (2024-November-13 +07:00)
- 350 built-in functions
- 9 built-in modules
Expand Down
2 changes: 1 addition & 1 deletion Singkong.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.1
10.2
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h3>Dr. Noprianto</h3>
</p>

<p>
Download (4.4 MB, version 10.1, 2024-November-13):
Download (4.4 MB, version 10.2, 2024-November-22):
<a href="https://nopri.github.io/Singkong.jar">Singkong.jar</a>,
<a href="https://nopri.github.io/Singkong.jar.md5">Singkong.jar.md5</a> (checksum),
<a href="https://nopri.github.io/Singkong.txt">Singkong.txt</a> (documentation, also included in Singkong.jar).
Expand Down Expand Up @@ -926,7 +926,7 @@ <h3><a href='#menu'>Classes (2019-2023)</a></h3>

<hr>
<div>
<p>Last updated on: 2024-November-13 +07:00</p>
<p>Last updated on: 2024-November-22 +07:00</p>
</div>
</body>
</html>
Expand Down
Binary file modified monkeyinterpreter.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion singkong.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3><a href="https://nopri.github.io">Dr. Noprianto</a></h3>
</p>

<p>
Download (4.4 MB, version 10.1, 2024-November-13):
Download (4.4 MB, version 10.2, 2024-November-22):
<a href="https://nopri.github.io/Singkong.jar">Singkong.jar</a>,
<a href="https://nopri.github.io/Singkong.jar.md5">Singkong.jar.md5</a> (checksum),
<a href="https://nopri.github.io/Singkong.txt">Singkong.txt</a> (documentation, also included in Singkong.jar).
Expand Down
5 changes: 3 additions & 2 deletions web.singkong
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
load_module("web")
;

require(9.8)
require(10.2)

load_module("json")

Expand Down Expand Up @@ -76,7 +76,8 @@ return value: HASH (empty HASH on error)
var v = md5(
@ + "-" +
random() + "-" +
random_string(16, 16)
random_string(16, 16) + "-" +
uuid()
)
if (v == null) {
return {}
Expand Down

0 comments on commit ab9cb4f

Please sign in to comment.