uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026
Warning
uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.
Product:
Class:
Sets a token pattern that will cause a temporary switch to another token list with configurable insertion points
Current token list
[revisit]This causes a context switch to happen when a given token pattern is reached. This is useful for instance if are parsing source code, and you want comments to be parsed based on a different set of tokens from the rest of the code.
This version of the function lets you decide where in the token list to insert the context switching token.