mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 23:29:55 +00:00
stop after a couple of parse errors (it's not useful to continue for long if there are parse errors)
This commit is contained in:
parent
6b4896b8f5
commit
38ccbac97c
@ -62,6 +62,8 @@ class ModuleImporter {
|
||||
is prog8Parser -> System.err.println("${recognizer.inputStream.sourceName}:$line:$charPositionInLine: $msg")
|
||||
else -> System.err.println("$line:$charPositionInLine $msg")
|
||||
}
|
||||
if(numberOfErrors>=5)
|
||||
throw ParsingFailedError("There are too many parse errors. Stopping.")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user