pineTok function - PineScript tokenizer (untested)