3 ms·
Paper [0] abstract: > ...We propose a new transpilation approach that offers fine-grained customizability and reusability of transpilation rules created by oth
by djoldman 4y ago
Paper [0] abstract:
> ...We propose a new transpilation approach that offers fine-grained customizability and reusability of transpilation rules created by others, without burdening the user to understand the global semantics of the given source program. Our approach is mostly automatic and incremental, i.e., constructs translation rules needed to transpile the given program as per the user’s guidance piece-by-piece. Users can rely on existing transpilation rules to translate most of the program correctly while focusing their effort locally, only on parts that are incorrect or need customization. This improves the correctness of the end result. We implement the transpiler as a tool called DuoGlot, which translates Python to Javascript programs, and evaluate it on the popular GeeksforGeeks benchmarks. DuoGlot achieves 90% translation accuracy and so itoutperforms all existing translators (both handcrafted and neural-based), while it produces readable code. We evaluate DuoGlot on two additional benchmarks, containing more challenging and longer programs, and similarly observe improved accuracy compared to the other transpilers.
https://arxiv.org/pdf/2301.11220.pdf https://arxiv.org/pdf/2301.11220.pdf