public
Created

Trivial test-parser

  • Download Gist
TestParser.scala
Scala
1 2 3 4 5 6 7
class TestParser extends JavaTokenParsers with CompletingParser {
 
def propertyPath: Parser[Any] = "name" | ( "child"~opt("."~childProperties) ) | "chunk"
 
def childProperties: Parser[Any] = "name" | "toys" | "tolerance"
 
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.