1 个仓库
Allows the insertion of raw platform-specific code that is only included in the output for matching target operating systems.
Distinct from Multi-Target Compilers: Focuses on conditional raw code injection based on OS target, rather than general multi-target bytecode generation.
Explore 1 awesome GitHub repository matching programming languages & runtimes · OS-Specific Code Blocks. Refine with filters or upvote what's useful.
Batsh 是一款跨平台 Shell 编译器和转译器,将统一的脚本语法转换为 Bash 和 Windows Batch 的平台特定命令。它充当多平台脚本生成器,将单一源语言转换为兼容 Linux、macOS 和 Windows 的可执行脚本。 该系统利用一种将高层构造映射到中间表示并解决命令标志和变量扩展差异的转换过程。它支持条件目标嵌入,允许将原始代码块注入到特定操作系统的输出中,同时对其他操作系统忽略。 该工具涵盖了通过将单个源文件转换为多个不同脚本格式来生成环境无关的构建工具和部署脚本。这确保了系统命令可以在不同操作系统上执行,而无需重复逻辑。
Provides the ability to inject raw code blocks into the output stream only when targeting a specific operating system.