Replies: 1 comment
-
Nice idea! Currently you'd have to do this with a parser rule:
But this would see the object as four distinct tokens and thus allow whitespace between them. The whitespace could be suppressed with a validation rule that looks at the CST to find "hidden tokens". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For Langium terminals it is possible to be defined as RegExp literal.
One feature of regular expressions are named groups.
The idea is to map named groups to properties. Here is one example for RGB values:
But maybe it is too much complexity for so little value. But now it is out of my head, more space for other stuff teehee
Values, I see, are:
Beta Was this translation helpful? Give feedback.
All reactions