← All repos

Batsh

A language that compiles to Bash and Windows Batch

Browse cluster: Cluster 10
259commits
14contributors
6languages

Tech stack & purpose

Batsh is a programming language that compiles to both Bash and Windows Batch, enabling developers to write a single script that runs on multiple platforms without additional dependencies. The project addresses the problem domain of cross-platform scripting by providing a C-based syntax that is easier to read and write than the historically messy Bash and Batch languages. Batsh is implemented in OCaml and built with dependencies including dune, core_kernel, ounit, dlist, and cmdliner, and was originally created by Carbo Kuo before being transferred to current maintainers who have updated it to work with recent OCaml versions.

Community & reference links

Languages

OCaml
86.3%
Batchfile
6.1%
Shell
4.3%
Standard ML
2.3%
JavaScript
0.5%
Makefile
0.5%

Contributors