import { State , Token } from './token' ; export class StringToken extends Token { string : string ; constructor ( string ) { super ( ) ; this . string = string ; } reduce ( state ) { state . text . push ( this . string ) ; return state ; } }