Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
briantist opened this issue May 28, 2019 · 0 comments
Open

Comments

@briantist
Copy link
Contributor

? 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant