UNPKG

@jplorg/jpl

Version:
180 lines (155 loc) 3.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OP_VOID = exports.OP_VARIABLE_DEFINITION = exports.OP_VARIABLE = exports.OP_TRY = exports.OP_STRING = exports.OP_OUTPUT_CONCAT = exports.OP_OR = exports.OP_OBJECT_CONSTRUCTOR = exports.OP_NUMBER = exports.OP_NULL_COALESCENCE = exports.OP_NOT = exports.OP_NEGATION = exports.OP_INTERPOLATED_STRING = exports.OP_IF = exports.OP_FUNCTION_DEFINITION = exports.OP_CONSTANT_TRUE = exports.OP_CONSTANT_NULL = exports.OP_CONSTANT_FALSE = exports.OP_CONSTANT = exports.OP_COMPARISON = exports.OP_CALCULATION = exports.OP_ASSIGNMENT = exports.OP_ARRAY_CONSTRUCTOR = exports.OP_AND = exports.OP_ACCESS = void 0; /** * { pipe: function, selectors: [opa] } * * { pipe: [op], selectors: [opa] } */ const OP_ACCESS = exports.OP_ACCESS = '$.'; /** * { pipes: [function] } * * { pipes: [[op]] } */ const OP_AND = exports.OP_AND = 'and'; /** * { pipe: function } * * { pipe: [op] } */ const OP_ARRAY_CONSTRUCTOR = exports.OP_ARRAY_CONSTRUCTOR = '[]'; /** * { pipe: function, selectors: [opa], assignment: opu } * * { pipe: [op], selectors: [opa], assignment: [opu] } */ const OP_ASSIGNMENT = exports.OP_ASSIGNMENT = '$='; /** * { pipe: function, operations: [opm] } * * { pipe: [op], operations: [opm] } */ const OP_CALCULATION = exports.OP_CALCULATION = 'clc'; /** * { pipe: function, comparisons: [opc] } * * { pipe: [op], comparisons: [opc] } */ const OP_COMPARISON = exports.OP_COMPARISON = 'cmp'; /** * { value: any } * * { value: any } */ const OP_CONSTANT = exports.OP_CONSTANT = 'cnt'; /** * {} * * {} */ const OP_CONSTANT_FALSE = exports.OP_CONSTANT_FALSE = 'fls'; /** * {} * * {} */ const OP_CONSTANT_NULL = exports.OP_CONSTANT_NULL = 'nul'; /** * {} * * {} */ const OP_CONSTANT_TRUE = exports.OP_CONSTANT_TRUE = 'tru'; /** * { argNames: [string], pipe: function } * * { argNames: [string], pipe: [op] } */ const OP_FUNCTION_DEFINITION = exports.OP_FUNCTION_DEFINITION = 'fun'; /** * { ifs: [{ if: function, then: function }], else: function } * * { ifs: [{ if: [op], then: [op] }], else: [op] } */ const OP_IF = exports.OP_IF = 'if'; /** * { interpolations: [{ before: string, pipe: function }], after: string } * * { interpolations: [{ before: string, pipe: [op] }], after: string } */ const OP_INTERPOLATED_STRING = exports.OP_INTERPOLATED_STRING = '"$"'; /** * {} * * {} */ const OP_NEGATION = exports.OP_NEGATION = 'neg'; /** * {} * * {} */ const OP_NOT = exports.OP_NOT = 'not'; /** * { pipes: [function] } * * { pipes: [[op]] } */ const OP_NULL_COALESCENCE = exports.OP_NULL_COALESCENCE = '??'; /** * { number: number } * * { number: number } */ const OP_NUMBER = exports.OP_NUMBER = 'nbr'; /** * { fields: [{ key: function, value: function, optional: boolean }] } * * { fields: [{ key: [op], value: [op], optional: boolean }] } */ const OP_OBJECT_CONSTRUCTOR = exports.OP_OBJECT_CONSTRUCTOR = '{}'; /** * { pipes: [function] } * * { pipes: [[op]] } */ const OP_OR = exports.OP_OR = 'or'; /** * { pipes: [function] } * * { pipes: [[op]] } */ const OP_OUTPUT_CONCAT = exports.OP_OUTPUT_CONCAT = ','; /** * { string: string } * * { string: string } */ const OP_STRING = exports.OP_STRING = '""'; /** * { try: function, catch: function } * * { try: [op], catch: [op] } */ const OP_TRY = exports.OP_TRY = 'try'; /** * { name: string } * * { name: string } */ const OP_VARIABLE = exports.OP_VARIABLE = 'var'; /** * { name: string, pipe: function } * * { name: string, pipe: [op] } */ const OP_VARIABLE_DEFINITION = exports.OP_VARIABLE_DEFINITION = 'va='; /** * {} * * {} */ const OP_VOID = exports.OP_VOID = 'vod';