Conversation started Sep 14, 2021 at 5:56.
Sep 14, 2021 05:56
^ how do i make that so it doesnt prepend spaces if the letter is in front of a letter say K
so Kh -> ` Kh `
and kh -> ` k h `
a...anyone?
Should it be a single regex? Also, are you really intending to use " \1 " (prepend and append a space for each matched char, so you get two spaces between two matched chars)?
Just write a parser
Sep 14, 2021 06:15
@emanresuA why?
@Bubbler yes
@emanresuA i am using regex to simply
also power went he=e
@pVCaecidiosporeadduced Trust me - if you have to think about how to do something with regex, you shouldn't do it with regex.
Maybe this?
@emanresuA oof ok
i wont do it this way then
Since this is for 51AC8, you may as well incorporate it into your parser.
@Bubbler bruh its that simple
@emanresuA whats 51AC8?
Sep 14, 2021 06:21
Oops, Dinoux
@pVCaecidiosporeadduced the best stack language
@Razetime ^_^
i changed its name
@Razetime and it doesnt have support for strings
cause its not necessary
yeah strings really are useless
@pVCaecidiosporeadduced ಠ_ಠ
@Razetime Wdym?
you read that right
Sep 14, 2021 06:24
How would you express the lowercase alphabet, for example, then?
@emanresuA wht?
@emanresuA use its ascii value
True...
Tt Pop and: Print top as character(s), print top
@emanresuA to swap the case xor it with 32
But having a new datatype allows for string-specific overloads, such as regex stuff.
@emanresuA regex?
Sep 14, 2021 06:27
stax has regex and it doesn't have dedicated strings
you can use a numerical regex
How would regex work on something like [-1,35,3e+143]?
@Razetime Conclusion: Strings are useless.
@emanresuA use dofferent regex syntax
so 32 matches a space
How do you compress strings?
and [32, -2] matches one or more spaces
Sep 14, 2021 06:31
I give up
@emanresuA heh, use a numerical compression algorithm
get a substring => get the subarray
 
Conversation ended Sep 14, 2021 at 6:31.