(options: Partial<CompileTarget> = {})
| 85 | } |
| 86 | |
| 87 | createTarget(options: Partial<CompileTarget> = {}): CompileTarget { |
| 88 | const fns = this.getFunctions(); |
| 89 | |
| 90 | return { |
| 91 | language: 'rpn', |
| 92 | operators: () => undefined, |
| 93 | functions: (id) => fns[id], |
| 94 | var: (id) => id, |
| 95 | string: (str) => str, |
| 96 | number: (n) => n.toString(), |
| 97 | indent: 0, |
| 98 | ws: () => '', |
| 99 | preamble: '', |
| 100 | ...options, |
| 101 | }; |
| 102 | } |
| 103 | |
| 104 | compile(expr: Expression, options: any = {}): CompilationResult { |
| 105 | const { BaseCompiler } = require('../../src/compute-engine/compilation/base-compiler'); |
no test coverage detected