arith2js – Calculator Transpiler with Scope Analysis

JSON →
library 1.0.0 ·javascript
verified May 1, 2026

A transpiler that converts calculator expressions (supporting complex numbers, min/max operators, variables, and print statements) into executable JavaScript code. Built on jison and extended from a basic arithmetic calculator, version 1.0.0 adds scope analysis to enforce variable declaration before use, reference semantics for complex objects, and comma-separated expression sequences. Key differentiators: full complex arithmetic transpilation, meticulous error reporting with line/column, and avoidance of primitive method calls via explicit Complex() wrapping.

total hits 24
actors 7 distinct systems
last hit 3d ago human
Amazonbot
3
MetaBot
3
GPTBot
2
Script
1
Humans
5

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France · VN