NameIT icon indicating copy to clipboard operation
NameIT copied to clipboard

"Internal Aliases" like ? and # shouldn't expand inside of arguments

Open briantist opened this issue 5 years ago • 0 comments

? inside a template is replaced with [alpha]; similarly # is replaced with [digit].

But if you did something like ig "[randomdate 1/1/1111 2/2/2222 'yyyy ? MM ? dd']" you'd have a mess on your hands: 1282 [alp6a MM b dd'] 😕

Since that replace is done before generator parsing, this is to be expected at the moment. Since these "Internal Aliases" (the name I'm giving them) expand to generators, they should be interpreted before generators are, but to do that means it's not clear when the text we're looking at is or isn't part of a generator itself. So this may require a two-pass type of dealie.

Have some ideas on improving parsing, both technically and readability-wise, so maybe that can help with this.

briantist avatar May 28 '19 01:05 briantist