Tags: formancehq/numscript
Tags
Implement a "/" operator (#39) * feat: edited the antlr grammar, updated the AST, the parser and its snapshots * fix: updated percentageLiteral.ToRatio() method * feat: implemented "/" operator in interpreter * test: added test with variable numerator and denominator * feat: implemented static type analysis of "/" expressions * chore: fix indentation * refactor: change ast node definition * feat: improve static analysis in allotment * feat: implemented hover for div operator * feat: better diagnostic description * chore: removed unused comment * refactor: renamed file * fix: handle divide by zero runtime err * fix: check div by zero in diagnostics * test: added test * test: add static analysis test with perc literal * test: add op precedence snap test
PreviousNext