Download Latest Version JSchemePlus-1.4PF2.zip (239.2 kB)
Email in envelope

Get an email when there's a new version of JSchemePlus

Home
Name Modified Size InfoDownloads / Week
README.txt 2025-01-31 5.4 kB
JSchemePlus-1.4PF2.zip 2025-01-31 239.2 kB
JSchemePlus-1.4PF.zip 2025-01-31 238.6 kB
Totals: 3 Items   483.2 kB 0
Usage: java -jar runtime.jar | SCRIPT | ARG0 ARG1 ARG2 ARG3 ...

Additional functions:
 *arguments*                                   Return the list of command-line arguments as strings
 *file-separator*                              Return the platform-dependent file separator character
 *home-dir*                                    Return the home directory as symbol
 *jar-path*                                    Return the jar path as symbol
 *path-separator*                              Return the platform-dependent path separator character
 *pid*                                         Return the process ID
 *os*                                          Return the operating system as symbol (unix, ms-windows or unknown)
 *tmp-dir*                                     Return the temporary directory as symbol
 (current-date)                                Return the current date as string
 (current-time)                                Return the current time in milliseconds since the UNIX epoch (Jan 1, 1970)
 (execute command)                             Execute command, return nothing (empty list)
 (execute! command)                            Execute and return the output of command as symbol
 (exec command)                                Combination of execute and execute!
 (sleep seconds)                               Sleep for seconds, return nothing (empty list)
 (tmp-file)                                    Return the full path of a temporary file as string
 (ceiling number)                              Return the smallest integer not smaller than number
 (floor number)                                Return the largest integer not larger than number
 (random)                                      Return a random number from 0.0 to 1.0
 (random-up-to number)                         Return a random integer number from 0 up to number
 (sequence from up-to step)                    Return a sequence of numbers starting from ending up-to by step
 (round-decimal number decimal)                Round decimal number by decimal
 (truncate number)                             Truncate decimal number
 (truncate-decimal number decimal)             Truncate decimal number by decimal
 (count element list)                          Return the number of element from list
 (element? element list)                       Return true if element is in list, otherwise return false
 (insert element list index)                   Return a new list from list with element at index
 (remove element list)                         Return a new list from list without element
 (replace element new-element list)            Return a new list from list replacing element with new-element
 (split list element)                          Split list by element and return a new list of lists
 (sublist list from up-to)                     Return a new list, a sublist of list starting at index from and ending at up-to
 (remove-last list)                            Return a new list from list without last element
 (string-count sub-string string)              Return the number of sub-string from string
 (string-downcase string)                      Return a new string from string with all downcase letters
 (string-insert sub-string string index)       Return a new string from string with sub-string at index
 (string-inside? sub-string string)            Return true if sub-string is in string, otherwise return false
 (string-remove sub-string string)             Return a new string from string without sub-string
 (string-replace sub-string new-string string) Return a new string from string replacing sub-string with new-string
 (string-split string sub-string)              Split string by sub-string and return a list of strings
 (string-split-by-newline string)              Split string by newline and return a list of strings
 (string-split-by-space string)                Split string by space and return a list of strings
 (string-trim string)                          Return a new string from string by removing whitespaces at the ends
 (string-upcase string)                        Return a new string from string with all upcase letters
 (vector-count element vector)                 Return the number of element from vector
 (vector-inside? element vector)               Return true if element is in vector, otherwise return false
 (read-all-from-file file)                     Read file and return content as single string
 (read-chars-from-file file)                   Read file and return content as list of characters
 (read-bytes-from-file file)                   Read file and return content as list of bytes
 (read-file-as-syms file)                      Read file and return content as list of symbols
 (read-file-as-strings file)                   Read file and return content as list of strings
 (read-lines-from-file file)                   Read file and return content as list of lines
 (write-to-file file data)                     Write any data type to file
 (file-size file)                              Return the file size in bytes
 (help)                                        Return this help as symbol
 (version)                                     Return version and license as symbol
 
To create an executable JAR file, simply make a copy of runtime.jar, name the script as main.scm and insert into this JAR, then execute it.
Source: README.txt, updated 2025-01-31