porting of parsergen and tab
tab translation to TS