Created
April 23, 2021 09:37
-
-
Save alllex/1a2e4b00a68abe99d505a36404d381bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val myStaks = object : StaksParser<List<Triple<String, String, String>>() { | |
val a = tagText("a") | |
val b = tagText("b") | |
val c = tagText("c") | |
val lst = list("el") { Triple(a(), b(), c()) } // list function now accepts the lamda that does the parsing directly | |
} | |
val lst = myStaks.lst(inp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment