calculator

command
v0.0.0-...-6735110 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2015 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
JackTT - Gopher 🇻🇳