diff options
author | Mathias <mathias@spray.cc> | 2011-05-06 23:26:52 +0200 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2011-05-06 23:26:52 +0200 |
commit | b9b9ae1bc56362695217bb2a8850586700c0315a (patch) | |
tree | 252a6a6e1803d40879389398d6b5b8cd725deb31 /src/main/scala/cc/spray/json/JsonParser.scala | |
parent | 0ce9cf8fce1dc475f3bb2a517e0a7698c9e0a5d9 (diff) | |
download | spray-json-b9b9ae1bc56362695217bb2a8850586700c0315a.tar.gz spray-json-b9b9ae1bc56362695217bb2a8850586700c0315a.tar.bz2 spray-json-b9b9ae1bc56362695217bb2a8850586700c0315a.zip |
Add basic scaladocs
Diffstat (limited to 'src/main/scala/cc/spray/json/JsonParser.scala')
-rw-r--r-- | src/main/scala/cc/spray/json/JsonParser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/cc/spray/json/JsonParser.scala b/src/main/scala/cc/spray/json/JsonParser.scala index 275f310..4a2d64b 100644 --- a/src/main/scala/cc/spray/json/JsonParser.scala +++ b/src/main/scala/cc/spray/json/JsonParser.scala @@ -18,8 +18,8 @@ package cc.spray.json import org.parboiled.scala._ import org.parboiled.errors.{ErrorUtils, ParsingException} -import java.lang.StringBuilder import org.parboiled.Context +import java.lang.StringBuilder /** * This JSON parser is the almost direct implementation of the JSON grammar @@ -85,7 +85,7 @@ object JsonParser extends Parser { def WhiteSpace: Rule0 = rule { zeroOrMore(anyOf(" \n\r\t\f")) } // helper method for fast string building - // for maximum performance we use a somewhat unorthodox parsing technqiue that is a bit more verbose (and probably + // for maximum performance we use a somewhat unorthodox parsing technique that is a bit more verbose (and somewhat // less readable) but reduces object allocations during the parsing run to a minimum: // the Characters rules pushes a StringBuilder object onto the stack which is then directly fed with matched // and unescaped characters in the sub rules (i.e. no string allocations and value stack operation required) |