Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

biz.metacode.calcscript:interpreter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biz.metacode.calcscript:interpreter

Calcscript is a stack based language designed with the purpose of executing complex calculations using minimum number of keystrokes

  • 1.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Calcscript interpreter

Build Status

Calcscript is a stack based language designed with the purpose of executing complex calculations using minimum number of keystrokes.

Building

Gradle will assemble the library that contains a small interactive shell:

./gradlew

Then it can be run with:

java -jar build/libs/*.jar

Script execution

Script is executed from left to right. When a number is found it is pushed onto the stack and appears on the right side of result. Each operator takes arguments from the top of the stack (right side) and leaves result on the stack.

Open the interactive shell and type: 2 3 8+*

It is also possible to define functions in the interpreter. Running {.sum\,/}:avg will create function avg that calculates averages. After that [1 2 4 7]avg will calculate the average of given array.

For more in depth tutorial see https://calc.metacode.biz/tutorial

FAQs

Package last updated on 21 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc