Sets a token pattern that will cause a temporary switch to another token list with configurable insertion points
Product:
Class:
Warning
uCalc API Preview Release Notice:The uCalc engine has successfully transitioned to modern cross-platform environments.The next phase envolves some structural changes, performance optimizations, and API refinements.The API is subject to breaking changes prior to the stable release. Please evaluate the preview version thoroughly before production use.
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.
This page last modified on: