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

Could not parse input org.antlr.runtime.EarlyExitException: null #246

Open
Artgit opened this issue Feb 9, 2018 · 0 comments
Open

Could not parse input org.antlr.runtime.EarlyExitException: null #246

Artgit opened this issue Feb 9, 2018 · 0 comments

Comments

@Artgit
Copy link

Artgit commented Feb 9, 2018

I'm trying to parse the following:

Parser parser = new Parser();
List<DateGroup> groups = parser.parse("the day before next 10/11/2016");
for (DateGroup group : groups) {
	List dates = group.getDates();
}

but it fails with the following exception:

10:21:44.851 [main] DEBUG com.joestelmach.natty.Parser - Could not parse input
org.antlr.runtime.EarlyExitException: null
	at com.joestelmach.natty.generated.DateWalker.date_time_alternative(DateWalker.java:540)
	at com.joestelmach.natty.generated.DateWalker.parse(DateWalker.java:418)
	at com.joestelmach.natty.Parser.singleParse(Parser.java:220)
	at com.joestelmach.natty.Parser.parse(Parser.java:100)
	at com.joestelmach.natty.Parser.parse(Parser.java:67)
	at com.verata.pipeline.api.controller.task.NattyTest.main(NattyTest.java:12)
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