calculator

command
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Command calculator is a small PEG-generated parser that computes simple math using integers.

Example usage: $ calculator "3 + (2 - 5 * 12)"

Inspired by pegjs arithmetic example: https://github.com/pegjs/pegjs/blob/master/examples/arithmetics.pegjs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL