资 源 简 介
cl-gcalc is a Common Lisp wrapper for Google Calculator.
Release notes
0.1.0: initial release.
Installation
cl-gcalc is ASDF-installable.
It depends on Drakma and cl-ppcre.
Documentation
Function gcalc
Syntax:
gcalc expression => value, units
Description
gcalc queries Google with expression and tries to parse the result. Raises gcalc-invalid-expression if Google Calculator widget is not included in the response form Google.
Examples:
(gcalc "3^28") => 2.2876793e13(gcalc "(4+4) m in inch") => 314.96063, "inch"(gcalc "4 + 3 i - (2nd root of -3)") => #C(4.0 1.