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.

18 lines (15 loc) 398 B
export var TEOF = 'TEOF'; export var TOP = 'TOP'; export var TNUMBER = 'TNUMBER'; export var TSTRING = 'TSTRING'; export var TPAREN = 'TPAREN'; export var TCOMMA = 'TCOMMA'; export var TNAME = 'TNAME'; export function Token(type, value, index) { this.type = type; this.value = value; this.index = index; } Token.prototype.toString = function () { return this.type + ': ' + this.value; };