Skip to content

Commit

Permalink
Singkong Programming Language (v10.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopri committed Nov 24, 2024
1 parent adf031c commit 8c3a735
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 15 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 @@
a8ff41c386441fc503339056fad200b3 Singkong.jar
72fc980d77ac0b9dc395634d0ec7a364 Singkong.jar
18 changes: 12 additions & 6 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.3 (2024-November-23 +07:00)
Version: 10.4 (2024-November-24 +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.3
Singkong 10.4
Press ENTER to quit
> var hello = "Hello World"
> hello
Expand Down Expand Up @@ -206,15 +206,16 @@ VAR
Note: to get list of keywords, please use built-in function keywords.

Data types:
Related functions: builtins, eval, is, is_array_and_of, is_array_of, is_array_of_component_of,
hash, print, println, puts, string, type, types, variables
Related functions: builtins, eval, ifnull, is, is_array_and_of, is_array_of,
is_array_of_component_of, hash, print, println, puts, string, type, types, variables

- NULL
- null
- null literal
- null may also returned from built-in functions
- null is not printed. To print null, please use
print, println, puts, or message.
- related functions: ifnull
- NUMBER
- any integer and decimal
- precision: 10240, default scale: 4
Expand Down Expand Up @@ -891,7 +892,7 @@ To get a list of built-in functions, please call builtins()
"FRAME_LOCATION", "FRAME_TOP", "FROM_BIN", "FROM_HEX", "FROM_OCT", "GET",
"GRID_ADD", "GRID_CLEAR", "GRID_REMOVE", "GUI", "HASH", "HELP", "HIDE", "HOUR",
"HTTP_DELETE", "HTTP_GET", "HTTP_GET_FILE", "HTTP_HEAD", "HTTP_POST",
"HTTP_POST_OVERRIDE", "HTTP_PUT", "HTTP_RESPONSE_OK", "IN", "INDEX",
"HTTP_POST_OVERRIDE", "HTTP_PUT", "HTTP_RESPONSE_OK", "IFNULL", "IN", "INDEX",
"INET_ADDRESS", "INET_ADDRESS_LOCAL", "INFO", "INPUT", "INTEGER", "INTEGER_GCD",
"INTERACTIVE", "IS", "IS_ARRAY_AND_OF", "IS_ARRAY_OF",
"IS_ARRAY_OF_COMPONENT_OF", "IS_LEAP_YEAR", "IS_RECT_ARRAY", "IS_RECT_ARRAY_OF",
Expand Down Expand Up @@ -931,7 +932,7 @@ To get a list of built-in functions, please call builtins()
"YEAR"]

> len(builtins())
350
351

Note: a built-in function may be disabled when the interpreter is run. In such
case, an error will be returned when the function is called.
Expand Down Expand Up @@ -4764,6 +4765,11 @@ show()
-----------------------------------------------------------------------------

30. Changelog
Version: 10.4 (2024-November-24 +07:00)
- 351 built-in functions
new: ifnull
- 9 built-in modules

Version: 10.3 (2024-November-23 +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.3
10.4
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ <h3>Dr. Noprianto</h3>
</p>

<p>
Download (4.4 MB, version 10.3, 2024-November-23):
Download (4.4 MB, version 10.4, 2024-November-24):
<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).
</p>

<p>
Singkong book in Bahasa Indonesia (320 pages):
Singkong book in Bahasa Indonesia (322 pages):
<a href="https://nopri.github.io/singkong.pdf">singkong.pdf</a>
</p>

Expand Down Expand Up @@ -315,7 +315,7 @@ <h3><a href='#menu'>Books</a></h3>
<tr>
<td><a href="https://nopri.github.io/singkong.pdf">PDF</a></td>
<td>Mengenal dan Menggunakan Bahasa Pemrograman Singkong (ISBN: 978-602-52770-1-6)</td>
<td>320 pages, published in 2020 (updated 2024) by PT. Stabil Standar Sinergi</td>
<td>322 pages, published in 2020 (updated 2024) by PT. Stabil Standar Sinergi</td>
</tr>

<tr>
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-23 +07:00</p>
<p>Last updated on: 2024-November-24 +07:00</p>
</div>
</body>
</html>
Expand Down
Binary file modified kolaborasi.pdf
Binary file not shown.
Binary file modified monkeyinterpreter.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions singkong.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ <h3><a href="https://nopri.github.io">Dr. Noprianto</a></h3>
</p>

<p>
Download (4.4 MB, version 10.3, 2024-November-23):
Download (4.4 MB, version 10.4, 2024-November-24):
<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).
</p>

<p>
Singkong book in Bahasa Indonesia (320 pages):
Singkong book in Bahasa Indonesia (322 pages):
<a href="https://nopri.github.io/singkong.pdf">singkong.pdf</a>
</p>

Expand Down
Binary file modified singkong.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion ui_calendar.singkong
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
load_module("ui_calendar")
;

require(9.4)
require(10.4)

var create_calendar = fn(year, month, data)
"
Expand Down Expand Up @@ -404,6 +404,7 @@ return value: ARRAY [COMPONENT (grid), COMPONENT (text), COMPONENT (button)]
event(b, fn() {
var dr = [-1]
var dh = fn(d, s, dow) {
config(t, "active", len(s))
config(t, "contents", s)
popup_hide(dr[0])
config(b, "enabled", true)
Expand Down

0 comments on commit 8c3a735

Please sign in to comment.