Undocumented feature. Using number as structure element. #519
Unanswered
TheCoolerSuptelov
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I never had the idea that structure elements could also be numbers, always thought that they must be a name (variable). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to create an expression where one of the keys is number, but tokenizer recognizes as NUMBER_LITERAL, not VARIABLE_OR_CONSTANT.
But I found a way around this limitation which is not described in the documentation, should I open an issue or is this a known issue?
Code samples I wrote in TokenizerStructureTest for reproduction
Workaroung with "_" prefix:
Test without prefix "_" in number key:
will be failed with:
[Token(startPosition=2, value=.101, type=NUMBER_LITERAL)]
Beta Was this translation helpful? Give feedback.
All reactions