Hi everyone,
I’m developing a URCap and hit a lexer exception in PolyScope when trying to generate a string that includes a tag in double quotes.
Target structure (example):
["testtag",2,3,4,5,6]
When building this dynamically, PolyScope fails before execution with a lexer error.
Where it happens (minimal repro):
assignment = str_cat(str_cat("[\"", tag), "\",")
Error shown by PolyScope:
Lexer ...:
assignment = str_cat(str_cat("[\"", tag), "\",")
From my observations, this is a tokenization (lexical parsing) issue: URScript’s lexer struggles with escaped double quotes (\") in certain concatenation contexts, even though the code looks syntactically valid.
Has anyone found a reliable workaround to safely insert double quotes into dynamically constructed strings in URScript?
Thanks,
Halit