2 个仓库
Generating parser source code for multiple target programming languages from a single grammar.
Distinct from Formal Grammar Parser Generators: Distinct from Formal Grammar Parser Generators: specifically targets the ability to produce code for multiple target languages.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Multi-Target Code Generation. Refine with filters or upvote what's useful.
ANTLR 是一个基于语法的代码生成器和多语言解析器生成器,用于设计和实现自定义语言。它作为一个工具包,用于将形式语言定义转换为可执行的源代码,以处理结构化文本或二进制文件,同时提供了一个用于自动构建和遍历层级解析树的框架。 该项目以其能够从单个共享语法定义生成多种目标编程语言的词法分析器和解析器的能力而著称。它支持包含直接左递归的语法,并利用自适应预测来优化解析速度,同时保持灵活性。 该系统涵盖了广泛的能力,包括词法分析、通过谓词评估进行的语义检查以及层级数据管理。它通过基于路径的查询和访问者-监听器遍历模式提供了解析树分析工具,以将语法逻辑与应用程序操作解耦。 命令行实用程序可用于测试语法定义和调试逻辑,并且该工具可以在 Docker 容器中执行以避免本地安装。
Produces lexer and parser source code for multiple target programming languages from a single shared grammar.
Wuffs is a toolset for generating memory-safe, sandboxed parsers and decoders from domain-specific language specifications. It functions as a compiler that transforms these specifications into executable code for C, Go, or Rust, specifically designed to decode untrusted file formats while preventing buffer and integer overflows. The project employs a sandboxed execution model that prohibits system calls and manual memory management to ensure computations are side-effect free. It utilizes a refined type system and compile-time constraint verification to enforce memory safety, alongside saturat
A feature that translates a domain-specific language into executable code for other target environments such as Go or Rust.