awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
batsh-dev-team avatar

batsh-dev-team/Batsh

0
View on GitHub↗
4,351 星标·168 分支·OCaml·1 次浏览batsh.org↗

Batsh

Batsh 是一款跨平台 Shell 编译器和转译器,将统一的脚本语法转换为 Bash 和 Windows Batch 的平台特定命令。它充当多平台脚本生成器,将单一源语言转换为兼容 Linux、macOS 和 Windows 的可执行脚本。

该系统利用一种将高层构造映射到中间表示并解决命令标志和变量扩展差异的转换过程。它支持条件目标嵌入,允许将原始代码块注入到特定操作系统的输出中,同时对其他操作系统忽略。

该工具涵盖了通过将单个源文件转换为多个不同脚本格式来生成环境无关的构建工具和部署脚本。这确保了系统命令可以在不同操作系统上执行,而无需重复逻辑。

Features

  • Bash and Batch Transpilers - Translates a unified scripting syntax into platform-specific shell commands for Linux and Windows.
  • Multi-Platform Script Generators - Generates compatible shell scripts for different operating systems from a shared set of instructions.
  • Cross-Platform Compilers - Acts as a compiler that transforms a single source language into both Bash and Windows Batch scripts.
  • Shell Script Transpilers - Converts a single source file into both Bash and Windows Batch scripts to ensure cross-platform execution.
  • Multi-Target Compilers - Generates multiple distinct executable script files from a single source to ensure environment-agnostic execution.
  • Cross-Platform Scripting - Enables writing a single script that runs on both Linux and Windows by compiling to native shell formats.
  • Transpilers - Transpiles a unified scripting syntax into platform-specific Bash and Windows Batch scripts.
  • Build Automation Scripts - Facilitates the creation of installation and deployment scripts that work across Windows and Unix-like environments.
  • Shell Syntax Mappings - Resolves differences in command flags and variable expansion by substituting tokens based on the target platform.
  • Cross-Platform Command Executions - Enables execution of system commands across Linux, macOS, and Windows by automatically compiling input into native syntax.
  • Abstract Syntax Tree Translations - Implements a translation process that maps high-level language constructs to shell commands via an intermediate abstract syntax tree.
  • OS-Specific Code Blocks - Provides the ability to inject raw code blocks into the output stream only when targeting a specific operating system.
  • Platform-Specific Backend Resolution - Resolves target-specific code requirements by allowing raw statements to be inserted for specific platforms.

Star 历史

batsh-dev-team/batsh 的 Star 历史图表batsh-dev-team/batsh 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

batsh-dev-team/batsh 是做什么的?

Batsh 是一款跨平台 Shell 编译器和转译器,将统一的脚本语法转换为 Bash 和 Windows Batch 的平台特定命令。它充当多平台脚本生成器,将单一源语言转换为兼容 Linux、macOS 和 Windows 的可执行脚本。

batsh-dev-team/batsh 的主要功能有哪些?

batsh-dev-team/batsh 的主要功能包括:Bash and Batch Transpilers, Multi-Platform Script Generators, Cross-Platform Compilers, Shell Script Transpilers, Multi-Target Compilers, Cross-Platform Scripting, Transpilers, Build Automation Scripts。

batsh-dev-team/batsh 有哪些开源替代品?

batsh-dev-team/batsh 的开源替代品包括: script-hub-org/script-hub — Script-Hub is a system for translating proxy rule sets and converting configuration modules between different network… reasonml/reason — Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web… nim-lang/nim — Nim is a statically typed, compiled systems programming language designed for high performance and cross-platform… rust-lang/cargo — Cargo is the official build system and package manager for the Rust programming language. It provides a unified… amber-lang/amber — Amber is a transpiler that translates high-level source code into executable shell scripts for Bash, Zsh, and Ksh. It… dart-lang/sdk — The Dart SDK is a comprehensive development kit for building cross-platform applications using a multi-paradigm…

Batsh 的开源替代方案

相似的开源项目,按与 Batsh 的功能重合度排序。
  • script-hub-org/script-hubScript-Hub-Org 的头像

    Script-Hub-Org/Script-Hub

    3,396在 GitHub 上查看↗

    Script-Hub is a system for translating proxy rule sets and converting configuration modules between different network proxy environments. It serves as a translator and converter that enables cross-platform compatibility for rewrite rules and script-based logic. The project includes a script interop layer that normalizes header casing and handles execution errors to ensure scripts run consistently across different tools. It also provides a remote configuration manager for importing, updating, and modifying proxy modules and parameters via web URLs. The software covers a range of capabilities

    JavaScript
    在 GitHub 上查看↗3,396
  • reasonml/reasonreasonml 的头像

    reasonml/reason

    10,313在 GitHub 上查看↗

    Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web environments or native machine code for operating systems. It serves as an OCaml-compatible language that shares an abstract syntax tree with OCaml, providing a practical syntax for the OCaml ecosystem. The project functions as a type-safe frontend language, incorporating JSX support to build user interfaces through structural elements that translate into type-safe function calls. It enables deep integration with the JavaScript ecosystem, allowing the use of existing librarie

    OCamljavascriptocamlprogramming-language
    在 GitHub 上查看↗10,313
  • nim-lang/nimnim-lang 的头像

    nim-lang/Nim

    18,071在 GitHub 上查看↗

    Nim is a statically typed, compiled systems programming language designed for high performance and cross-platform development. It translates high-level source code into C, C++, or JavaScript, allowing developers to produce efficient native binaries or web-compatible scripts from a single codebase. The language emphasizes a clean, indentation-based syntax that simplifies code hierarchy while maintaining the power of a full-featured systems language. What distinguishes Nim is its robust metaprogramming framework, which allows developers to inspect, modify, and generate code structures during th

    Nimcompilerefficienthacktoberfest
    在 GitHub 上查看↗18,071
  • rust-lang/cargorust-lang 的头像

    rust-lang/cargo

    14,624在 GitHub 上查看↗

    Cargo is the official build system and package manager for the Rust programming language. It provides a unified command-line interface that orchestrates the entire development lifecycle, including compiling source code, managing complex dependency graphs, running tests, and distributing packages through a centralized registry. By utilizing declarative manifest files, it ensures that builds remain reproducible and consistent across different environments. The tool distinguishes itself through its deep integration with the Rust compiler and its sophisticated approach to project management. It f

    Rustcargopackage-managerrust
    在 GitHub 上查看↗14,624
查看 Batsh 的所有 30 个替代方案→