allow `expandSyntax` to take tokens as well