pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

the beesting should work inside double-quoted strings as well as chevrons

Open b1conrad opened this issue 5 years ago • 4 comments

b1conrad avatar Dec 10 '20 18:12 b1conrad

Could you tell us how difficult this might be to arrange?

b1conrad avatar Dec 12 '20 20:12 b1conrad

Most of the magic will happen in the tokenizer packages/krl-parser/src/tokenizer.ts

You'll then need to adjust the parser and compiler to accept Strings with values similar to the Chevron.

https://github.com/Picolab/pico-engine/blob/master/packages/krl-parser/src/types.ts#L49-L57

farskipper avatar Dec 15 '20 16:12 farskipper

I'm open to discussing whether this is a good idea or not.

windley avatar Dec 17 '20 21:12 windley

On discussion, decided this would be a hard thing to fix, so not doing it for now. One tricky thing is that there are no newlines in a double-quoted string, but a beesting can contain newlines between the curly braces.

b1conrad avatar Jan 05 '21 08:01 b1conrad