add `expandSyntax` API for easy controlled expansions