You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val group : Parser<OdlStruct> by (groupStart and zeroOrMore(group) and groupEnd).map { // line 58
(name1 : String, nested : List<OdlStruct>, name2 : String ) ->
val result = OdlStruct(name1)
result.nested.addAll(nested)
result
}
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method com.github.h0tk3y.betterParse.grammar.Grammar.getValue, parameter <this>
at com.github.h0tk3y.betterParse.grammar.Grammar.getValue(Grammar.kt)
at com.sunya.netchdf.parser.OdlParser.getGroup(OdlParser.kt:58)
at com.sunya.netchdf.parser.OdlParser.<clinit>(OdlParser.kt:58)
presumably from "zeroOrMore(group)"
I guess I need a to instantiate a new Parser instead of trying to reference the group(?), but im stymied how to do that.
Maybe something simple Im missing?
Thanks for your help and the cool library.
The text was updated successfully, but these errors were encountered:
Im failing to do recursion:
on input like:
I get error:
presumably from "zeroOrMore(group)"
I guess I need a to instantiate a new Parser instead of trying to reference the group(?), but im stymied how to do that.
Maybe something simple Im missing?
Thanks for your help and the cool library.
The text was updated successfully, but these errors were encountered: