You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's easy to generate checker functions for rules that consist of an alternative of string literals. We might even consider extending this to terminal rules by using their corresponding regular expression, but it might be hard to check arbitrary data type rules (which can be composed of multiple lexer tokens).
Is there a function generated by the langium code generator to check the validity of a string concerning a given union type from the grammar? E.g., isState in the example above.
The text was updated successfully, but these errors were encountered:
It's easy to generate checker functions for rules that consist of an alternative of string literals. We might even consider extending this to terminal rules by using their corresponding regular expression, but it might be hard to check arbitrary data type rules (which can be composed of multiple lexer tokens).
Originally posted by @goto40 in #389 (comment)
The text was updated successfully, but these errors were encountered: