Module wcal::generator[][src]

Use ast to calculate or generate target code.

Current implemented generator:

  • calculator: calculate the expression to i128, will cause a cast in division
  • calculator_f: calculate the expression to f64

Modules

calculator

Convert the expression AST to i128

calculator_f

Convert the expression AST to f64