UNPKG

tcl-js

Version:

tcl-js is a tcl intepreter written completely in Typescript. It is meant to replicate the tcl-sh interpreter as closely as possible.

12 lines (8 loc) 290 B
import { Parser } from '../../src/math/parser'; //import {Parser} from 'expr-eval' import * as util from 'util'; // alternative shortcut let parser = new Parser({operators:{in:true}}); let result = parser.parse('"hi" in hello,hi,hello'); result = result.evaluate(); console.log(result);