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

Partial parse/tokenisation? #2

Open
hadley opened this issue Feb 5, 2016 · 2 comments
Open

Partial parse/tokenisation? #2

hadley opened this issue Feb 5, 2016 · 2 comments

Comments

@hadley
Copy link

hadley commented Feb 5, 2016

Not sure if you have this already, but if you do, it's not documented.

Could be own function, or partial argument to existing functions.

@kevinushey
Copy link
Owner

What would the partial argument do in this case? For tokenization it's at least it's (mostly) stateless so this should be easy. The exception being [ and [[, e.g. in tokenizing

foo[bar[[1]]]
foo[[bar[1]]]

We need to maintain a token stack to disambiguate when to tokenize ] vs ]].

@hadley
Copy link
Author

hadley commented Feb 5, 2016

partial would change it from returning an error to returning something with a partial flag.

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

2 participants