Added additional arithmetic source

This commit is contained in:
bwhitn 2017-12-17 15:20:58 -05:00
parent ae8d1f2178
commit 772f9a806e
4 changed files with 62 additions and 27 deletions

View file

@ -159,6 +159,7 @@ const Categories = [
{
name: "Utils",
ops: [
"Arithmetic",
"Diff",
"Remove whitespace",
"Remove null bytes",

View file

@ -660,8 +660,8 @@ const OperationConfig = {
"Arithmetic": {
module: "Default",
description: "Conducts mathamatical operations on a list of numbers",
inputType: "string"
outputType: "string"
inputType: "string",
outputType: "string",
args: [
{
name: "Delimiter",
@ -669,7 +669,7 @@ const OperationConfig = {
value: Arithmetic.DELIM_OPTIONS
},
{
name: "Operation"
name: "Operation",
type: "option",
value: Arithmetic.OPERATIONS
}

View file

@ -1,4 +1,5 @@
import FlowControl from "../../FlowControl.js";
import Arithmetic from "../../operations/Arithmetic.js";
import Base from "../../operations/Base.js";
import Base58 from "../../operations/Base58.js";
import Base64 from "../../operations/Base64.js";
@ -155,6 +156,7 @@ OpModules.Default = {
"Conditional Jump": FlowControl.runCondJump,
"Return": FlowControl.runReturn,
"Comment": FlowControl.runComment,
"Arithmetic": Arithmetic.runOp,
/*