Skip to content

Instantly share code, notes, and snippets.

@relrod
Created April 17, 2014 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save relrod/10964993 to your computer and use it in GitHub Desktop.
Save relrod/10964993 to your computer and use it in GitHub Desktop.
[
[
":return",
[
":ok",
"9 : Integer",
[
[
"0",
"1",
[
[
":decor",
":data"
]
]
],
[
"4",
"7",
[
[
":decor",
":type"
]
]
]
]
],
"1"
]
]
@relrod
Copy link
Author

relrod commented Apr 17, 2014

case class Outer(result: List[Return])   // outer [ ... ]
case class Return(responseType: String, response: List[Response], one: Int) // [ ":return", [ ... ], "1" ]  (not sure what the "1" is yet)
case class Response(status: String, output: String, tokens: List[List[Token]]) // [ ":ok", "9 : Integer", [ [ ... ] ] ]
case class Token(startChar: Int, length: Int, metadata: List[List[Metadata]])
case class Metadata(label: String, tokenType: String)  // ":decor", ":data"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment