calculator

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 11 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