rampall / calculator-ts

This is a lisp calculator made with typescript type.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CALCULATOR TS

Description

This is a lisp calculator made with typescript type.

Example

import type { Calculate } from "./src";

type Result = Calculate<`(- (+ 10 30) (* 40 -2))`>; // 120
type Result = Calculate<`(* (% 33 7) (% -35 6))`>; // -25

About

This is a lisp calculator made with typescript type.

License:MIT License


Languages

Language:TypeScript 93.7%Language:JavaScript 6.3%