diff options
| author | mryouse | 2022-07-15 00:38:06 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-15 00:38:06 +0000 |
| commit | 56fd2af55261d84a412b40d39945acba4c5b1ced (patch) | |
| tree | 71be3b1b746360c63392ac1c52b665d0fa973888 /commands.txt | |
| parent | 6812b01b2cd789fbdded74e0a3ff40bb39d849ff (diff) | |
update for new commands
Diffstat (limited to 'commands.txt')
| -rw-r--r-- | commands.txt | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/commands.txt b/commands.txt index 374d44d..86af36a 100644 --- a/commands.txt +++ b/commands.txt @@ -1,23 +1,30 @@ +~ Neb Syntax ~ (and arg :bool arg :bool & :bool) => :bool (assert cond :bool) => :list (bench command :any) => :any (block expr :any & :any) => :any (branch body :any & :any) => :any (def name :any value :any) => :list +(drop-while list :[:any] body :any & :any) => :any (eval arg :any) => :any (for-count count :int body :any & :any) => :any -(for-each list :list body :any & :any) => :any +(for-each list :[:any] body :any & :any) => :any (func name :any args :any body :any & :any) => :list (if cond :bool t-branch :any f-branch :any) => :any (lambda args :any body :any & :any) => :any (or arg :bool arg :bool & :bool) => :bool +(qfirst arg :[:any]) => :any (quote arg :any) => :any (redef name :any value :any) => :list +(take-while list :[:any] body :any & :any) => :any +(try expr :any except :any) => :any (type name :any name :any func :any) => :any (use filename :string) => :list (use-as filename :string namespace :any) => :list (while cond :bool & :any) => :any -($ command :string) => :list + +~ Neb Functions ~ +($ command :string) => :string (* factor :number factor :number & :number) => :number (+ term :number & :number) => :number (- term :number & :number) => :number @@ -28,38 +35,38 @@ (> num :number num :number) => :bool (>= num :number num :number) => :bool (any? arg :any) => :bool -(append list :list item :any) => :list -(apply func :any list :list) => :any +(append list :[:any] item :any) => :list +(apply func :any list :[:any]) => :any (argv) => :list (bool? arg :any) => :bool (clear) => :list (close handle :handle) => :list (concat arg :string arg :string & :string) => :string -(empty? list :list) => :bool +(empty? list :[:any]) => :bool (env regex :string) => :string -(eq? value :literal value :literal) => :bool +(eq? value :any value :any) => :bool (exists? filename :string) => :bool (exit status :int) => :list -(filter func :any list :list) => :list -(first arg :list) => :any +(filter func :any list :[:any]) => :list +(first arg :[:any]) => :any (first-char string :string) => :string (float? arg :any) => :bool (floor floor :number) => :int -(funcs) => :list +(funcs all? :bool) => :list (glob regex :string) => :string (handle? arg :any) => :bool (howto symbol :any) => :list -(in? target :literal list :list) => :bool +(in? target :literal list :[:any]) => :bool (int? arg :any) => :bool -(join list :list joiner :string) => :string -(last list :list) => :any +(join list :[:any] joiner :string) => :string +(last list :[:any]) => :any (length string :string) => :int (list & :any) => :list -(list-length arg :list) => :int -(list-reverse list :list) => :list +(list-length arg :[:any]) => :int +(list-reverse list :[:any]) => :list (list? arg :any) => :bool (literal? arg :any) => :bool -(map func :any list :list) => :list +(map func :any list :[:any]) => :list (not not :bool) => :bool (number? arg :any) => :bool (open-append filename :string) => :handle @@ -67,25 +74,27 @@ (open-write filename :string) => :handle (parse-neb string :string) => :any (print arg :string) => :list +(raw string :string) => :string (read handle :handle) => :string (read-char) => :string (read-line prompt :string) => :string (read-lines filename :string) => :list -(remove list :list key :any) => :list -(rest arg :list) => :list +(remove list :[:any] key :any) => :list +(rest arg :[:any]) => :list (rest-char string :string) => :string -(shuf list :list) => :list -(slice list :list idx :int length :int) => :list -(sort-numbers list :list) => :list +(shuf list :[:any]) => :list +(slice list :[:any] idx :int length :int) => :list +(sort-numbers list :[:any]) => :list (split target :string & :string) => :list (string->int arg :string) => :int (string? arg :any) => :bool (strip filename :string) => :string -(symbols) => :list +(symbols all? :bool) => :list (syntax) => :list (type? arg :any) => :bool (typeof candidate :any) => :any (unlink filename :string) => :list -(user-symbols) => :list +(user-funcs all? :bool) => :list +(user-symbols all? :bool) => :list (write string :string handle :handle) => :list -(zip list :list list :list) => :list +(zip list :[:any] list :[:any]) => :list |
