Skip to content

Commit

Permalink
-unv unvisited code list; return-unless; misc
Browse files Browse the repository at this point in the history
  • Loading branch information
phunanon committed Oct 2, 2023
1 parent c0c3bf7 commit 322518f
Show file tree
Hide file tree
Showing 14 changed files with 255 additions and 143 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ package-lock.json
dist/
node/
*.ix
unvisited.txt
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ $ ix file.ix #execute file.ix in the working directory
$ ix -e "PI" #execute provided string
$ ix -b #disable REPL budgets (loops, recur, etc)
$ ix -nc #turn off "colour mode" for REPL errors, etc
$ ix -unv #generate unvisited.txt of unvisited code line:column
$ ix [args] -r #… then open a REPL session
$ ix [...] -- [...] #seperation between ix args and program args (e.g. %0)
Most arguments/switches can be mixed with one another.

$ ix i #installs dependencies listed in deps.txt
$ ix r #remove dependencies listed in deps
$ ix r #remove dependencies listed in deps.txt
$ ix i user/repo #clone Github repository into the .ix directory
$ ix r user/repo #… and subsequently remove
$ ix i alias http… #download file via HTTP into the .ix directory as alias.ix
Expand Down Expand Up @@ -193,7 +194,7 @@ built-in operations each within an example, with results after a `→`.
; when its condition is truthy
(function f (return-when true 123) (print "hello"))
(f) → 123
(function f (return-when false) (print "hi"))
(function f (return-unless true) (print "hi"))
(f) → null ;and prints "hi"

;Tests a condition and executes and returns either the second or third argument
Expand Down
2 changes: 2 additions & 0 deletions corpus/nearest-vowel-dist.ix
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@

(print [[0 0 0 0 0] [1 0 1 2 3] [0 1 2 1 0 1 2 3]])
(proj nearest-vowel-dist "aaaaa" "babbb" "abcdabcd")

; Could be improved: https://codegolf.stackexchange.com/questions/233837/find-me-vowels-near-you
36 changes: 36 additions & 0 deletions media/insitux-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 27 additions & 24 deletions media/insitux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions media/ix-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 27 additions & 24 deletions media/ix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 0 additions & 61 deletions media/logo.html

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "insitux",
"version": "23.10.1",
"version": "23.10.2",
"description": "Extensible scripting language written in portable TypeScript.",
"main": "dist/invoker.js",
"types": "dist/invoker.d.ts",
Expand Down
Loading

0 comments on commit 322518f

Please sign in to comment.