Skip to content

Commit

Permalink
build: introduce minor changes in structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Jan 5, 2016
1 parent e86dcfa commit 8151ce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/stoml/TomlParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ trait TomlParser extends ParserUtil with TomlSymbol {
lazy val nodes: Parser[Seq[Node]] = P { node.rep(min=1, sep=WS) ~ End }
}

object TomlParserApi extends TomlParser {
trait TomlParserApi extends TomlParser {
import stoml.Toml.{Node, Table, Pair}

type Key = Vector[String]
Expand All @@ -169,3 +169,5 @@ object TomlParserApi extends TomlParser {
def toToml(s: String): Parsed[TomlContent] =
(nodes map TomlContent.apply).parse(s)
}

object TomlParserApi extends TomlParserApi

0 comments on commit 8151ce0

Please sign in to comment.