@jplorg/jpl
Version:
JPL interpreter
83 lines (80 loc) • 2.37 kB
JavaScript
import {
OP_ACCESS,
OP_AND,
OP_ARRAY_CONSTRUCTOR,
OP_ASSIGNMENT,
OP_CALCULATION,
OP_COMPARISON,
OP_CONSTANT,
OP_CONSTANT_FALSE,
OP_CONSTANT_NULL,
OP_CONSTANT_TRUE,
OP_FUNCTION_DEFINITION,
OP_IF,
OP_INTERPOLATED_STRING,
OP_NEGATION,
OP_NOT,
OP_NULL_COALESCENCE,
OP_NUMBER,
OP_OBJECT_CONSTRUCTOR,
OP_OR,
OP_OUTPUT_CONCAT,
OP_STRING,
OP_TRY,
OP_VARIABLE,
OP_VARIABLE_DEFINITION,
OP_VOID,
} from '../../library';
import opAccess from './opAccess';
import opAnd from './opAnd';
import opArrayConstructor from './opArrayConstructor';
import opAssignment from './opAssignment';
import opCalculation from './opCalculation';
import opComparison from './opComparison';
import opConstant from './opConstant';
import opConstantFalse from './opConstantFalse';
import opConstantNull from './opConstantNull';
import opConstantTrue from './opConstantTrue';
import opFunctionDefinition from './opFunctionDefinition';
import opIf from './opIf';
import opInterpolatedString from './opInterpolatedString';
import opNegation from './opNegation';
import opNot from './opNot';
import opNullCoalescence from './opNullCoalescence';
import opNumber from './opNumber';
import opObjectConstructor from './opObjectConstructor';
import opOr from './opOr';
import opOutputConcat from './opOutputConcat';
import opString from './opString';
import opTry from './opTry';
import opVariable from './opVariable';
import opVariableDefinition from './opVariableDefinition';
import opVoid from './opVoid';
const ops = {
[]: opAccess,
[]: opAnd,
[]: opArrayConstructor,
[]: opAssignment,
[]: opCalculation,
[]: opComparison,
[]: opConstant,
[]: opConstantFalse,
[]: opConstantNull,
[]: opConstantTrue,
[]: opFunctionDefinition,
[]: opIf,
[]: opInterpolatedString,
[]: opNegation,
[]: opNot,
[]: opNullCoalescence,
[]: opNumber,
[]: opObjectConstructor,
[]: opOr,
[]: opOutputConcat,
[]: opString,
[]: opTry,
[]: opVariable,
[]: opVariableDefinition,
[]: opVoid,
};
export default ops;