dhakehurst / net.akehurst.language

Generic Language (DSL) support for kotlin multiplatform (parser, syntax-analyser, formatter, processor, etc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a threshold for searching possible matches

annekekleppe opened this issue · comments

Could you provide a manner to stop the parser after a certain number of possible trees has been found or after a certain depth of searches? Our use case is that we generate a grammar from user input, therefore we cannot guarantee that that parser will function correctly. We'd like to be able to stop the parsing and provide an error message in that case.

good idea,
I will think about it.