-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modwords can now create and update values, many improvements, tests a…
…nd examples also
- Loading branch information
Showing
21 changed files
with
232 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,6 @@ tests/*.html | |
shell_*.rye | ||
console_*.rye | ||
|
||
buildtemp/main.rye | ||
buildtemp/main.rye | ||
*.bson | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go build -tags "b_sqlite,b_http,b_sql,b_postgres,b_bson,b_mail,b_bcrypt,b_telegram,b_html,b_email,b_mail,b_mysql,b_fyne,b_contrib,b_bleve,b_devops,b_ssh," -o bin/rye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
env GOOS=js GOARCH=wasm go build -tags "b_wasm" -o wasm/ryeshell/main.wasm main_wasm.go ; bin/rye serve_wasm.rye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
doc! "demonstrates 6 ways to calculate a factorial and one fibbonaci" | ||
|
||
fib1: fn { n "recursive" } { either n < 2 { n } { fib0 n - 1 |+ fib0 n - 2 } } | ||
|
||
fac1: fn { n "recursive" } { either n > 1 { n * fac1 n - 1 } { 1 } } | ||
|
||
fac2: fn1 { i: 0 , .produce 1 { i:: inc i , * i } } | ||
|
||
fac3: fn { x "loop" } { acc: 1 loop x { * acc ::acc } } | ||
|
||
fac4: fn { n i ac "recur-if\3 set a2 & a3 to 1" } { print i recur-if\3 n > i n i + 1 ac * i } | ||
|
||
fac5: fn1 { .range* 1 |fold 'acc 1 { * acc } } | ||
|
||
fac6: fn1 { .range* 1 |mul } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
print "Start Lib" | ||
|
||
import %lib2.rye | ||
|
||
print "End Lib1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
; |_++++ads( | ||
|
||
add5: fn { x } { + 5 } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
print "Before" | ||
|
||
import %lib1.rye | ||
|
||
print "After" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; blogpost: | ||
; lobster: | ||
; curl 'https://api.github.com/orgs/golang/repos' > repos.json | ||
|
||
get https://api.github.com/orgs/golang/repos | ||
|parse-json | ||
|map { -> "license" |fix\either { "no" } { -> "key" } } | ||
|spreadsheet* { "license" } | ||
|group-by 'license { 'license count } |display | ||
|
||
; | license | license_count | | ||
; +------------------------------+ | ||
; | bsd-3-clause | 23 | | ||
; | apache-2.0 | 5 | | ||
; | no | 2 | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.