simpler parser, allow for negated conditions

This commit is contained in:
octarine-noise
2021-07-26 16:29:54 +02:00
parent b4824b77ae
commit e689a44687
6 changed files with 44 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ class BlockConfig : HasLogger() {
val parser = BlockConfigParser(resource.inputStream)
.apply { configFile = configLocation.stripStart("config/betterfoliage/").toString() }
try {
mutableListOf<Node.MatchAll>().apply { parser.matchFile(this) }
parser.matchFile()
} catch (e: ParseException) {
parseError(e, configLocation)
} catch (e: TokenMgrError) {