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

Create a strategy for the indentation level to use in parsers #2

Open
skiwi2 opened this issue Feb 9, 2015 · 0 comments
Open

Create a strategy for the indentation level to use in parsers #2

skiwi2 opened this issue Feb 9, 2015 · 0 comments

Comments

@skiwi2
Copy link
Owner

skiwi2 commented Feb 9, 2015

Currently you can create parsers with the following idiom:

  • CreateGameEntryParser.create(), will match entries at any indentation level.
  • CreateGameEntryParser.createForIndentation(indentation), will match entries at the specific indentation level.

It would be better to supply some kind of strategy that allows it to match indentation levels either smaller than, equal or bigger than a specified indentation level. This should be able to be combined with a strategy that increases the specified indentation level by for example 4.

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

No branches or pull requests

1 participant