https://github.com/cotowali/cotowali Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} cotowali / cotowali Public * * Notifications * Fork 7 * Star 369 A statically typed scripting language that transpile into POSIX sh MPL-2.0 License 369 stars 7 forks Star Notifications * Code * Issues 5 * Pull requests 2 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 8 branches 9 tags Code Latest commit @zakuro9715 zakuro9715 Merge pull request #127 from simonwjackson/patch-1 ... 07cdec1 Mar 25, 2022 Merge pull request #127 from simonwjackson/patch-1 Update README.md 07cdec1 Git stats * 2,881 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github remove slack notify Mar 25, 2022 cmd fix warning Feb 9, 2022 cotowali fix Err Mar 2, 2022 docker fix Dockerfile Feb 13, 2022 docs remove openssl Dec 29, 2021 examples Add examples/cotowali-in-shell.sh Dec 27, 2021 jsonrpc jsonrpc: Response2 -> ResponseWithError Aug 18, 2021 lsp kuqi: show error messages Aug 24, 2021 scripts add cotowali::release::archive_name Dec 21, 2021 std std: add sleep Feb 7, 2022 tests implement panic() Jan 20, 2022 .gitignore add himorogi test Jan 6, 2022 CHANGELOG.md update changelog Dec 30, 2021 CONTRIBUTING.md cotowari -> cotowali Jul 2, 2021 CREDITS add VLS credits Aug 18, 2021 LICENSE Update LICENSE Jul 27, 2021 README.md Merge branch 'main' into patch-1 Mar 25, 2022 docker-compose.yaml update docker-compose version Oct 13, 2021 kuqi.vimrc add kuqi.vimrc Aug 18, 2021 v.mod cotowari -> cotowali Jul 2, 2021 z.yaml enable gc on kuqi by default Feb 12, 2022 View code [ ] We need financial support to continue development. Please become a sponsor. Cotowali Concepts of Cotowali Example Installation Use Konryu (cotowali installer written in cotowali) Build from source How to use Development Docker Author Acknowledgements README.md We need financial support to continue development. Please become a sponsor. [cotowali] Cotowali A statically typed scripting language that transpile into POSIX sh License: MPL 2.0 Concepts of Cotowali * Outputs shell script that is fully compliant with POSIX standards. * Simple syntax. * Simple static type system. * Syntax for shell specific feature like pipe and redirection. Example fn fib(n: int): int { if n < 2 { return n } return fib(n - 1) + fib(n - 2) } fn int |> twice() |> int { var n = 0 read(&n) return n * 2 } assert(fib(6) == 8) assert((fib(6) |> twice()) == 16) fn ...int |> sum() |> int { var v: int var res = 0 while read(&v) { res += v } return res } fn ...int |> twice_each() |> ...int { var n: int while read(&n) { yield n * 2 } } assert((seq(3) |> sum()) == 6) assert((seq(3) |> twice_each() |> sum()) == 12) // Call command by `@command` syntax with pipeline operator assert(((1, 2) |> @awk('{print $1 + $2}')) == '3') There is more examples Installation Use Konryu (cotowali installer written in cotowali) curl -sSL https://konryu.cotowali.org | sh # add to your shell config like .bashrc export PATH="$HOME/.konryu/bin:$PATH" eval "$(konryu init)" Build from source 0. Install required tools + The V Programming Language git clone https://github.com/vlang/v cd v make + zakuro9715/z go install github.com/zakuro9715/z # or curl -sSL gobinaries.com/zakuro9715/z | sh 1. Build z build 2. Install sudo z symlink # or sudo z install How to use # compile lic examples/add.li # execution lic examples/add.li | sh # or lic run examples/add.li Development See docs/development.md Docker docker compose run dev Author zakuro Acknowledgements Cotowali is supported by 2021 Exploratory IT Human Resources Project (The MITOU Program by IPA: Information-technology Promotion Agency, Japan. About A statically typed scripting language that transpile into POSIX sh Topics language programming-language transpiler shell-script cotowari Resources Readme License MPL-2.0 License Stars 369 stars Watchers 2 watching Forks 7 forks Releases 2 v0.1.1 Latest Dec 30, 2021 + 1 release Sponsor this project * open_collective opencollective.com/cotowali Packages 0 No packages published Contributors 3 * @zakuro9715 zakuro9715 zakuro * @andrelaszlo andrelaszlo Andre Laszlo * @simonwjackson simonwjackson Simon W. Jackson Languages * V 98.6% * Verilog 0.6% * GLSL 0.3% * Dockerfile 0.2% * Shell 0.2% * Vim Script 0.1% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.