Skip to content
Permalink
Browse files

add newlines at end of file

  • Loading branch information...
xuwei-k committed Jan 26, 2019
1 parent 42e3db0 commit 3e12de752beaaee505cab2a1cb0c873f28c37d1a
Showing with 35 additions and 35 deletions.
  1. +1 −1 examples/src/main/scala/org/parboiled2/examples/ABCParser.scala
  2. +1 −1 examples/src/main/scala/org/parboiled2/examples/Calculator1.scala
  3. +1 −1 examples/src/main/scala/org/parboiled2/examples/Calculator2.scala
  4. +1 −1 examples/src/main/scala/org/parboiled2/examples/CsvParser.scala
  5. +1 −1 examples/src/main/scala/org/parboiled2/examples/JsonParser.scala
  6. +1 −1 examples/src/test/scala/org/parboiled2/examples/CsvParserSpec.scala
  7. +1 −1 examples/src/test/scala/org/parboiled2/examples/JsonParserSpec.scala
  8. +1 −1 jsonBenchmark/src/main/scala/org/parboiled/examples/JsonParserBenchmark.scala
  9. +1 −1 parboiled-core/src/main/scala/org/parboiled2/ErrorFormatter.scala
  10. +1 −1 parboiled-core/src/main/scala/org/parboiled2/ParseError.scala
  11. +1 −1 parboiled-core/src/main/scala/org/parboiled2/ParserInput.scala
  12. +1 −1 parboiled-core/src/main/scala/org/parboiled2/Rule.scala
  13. +1 −1 parboiled-core/src/main/scala/org/parboiled2/RuleDSLActions.scala
  14. +1 −1 parboiled-core/src/main/scala/org/parboiled2/RuleDSLCombinators.scala
  15. +1 −1 parboiled-core/src/main/scala/org/parboiled2/ValueStack.scala
  16. +1 −1 parboiled-core/src/main/scala/org/parboiled2/support/ActionOpsSupport.scala
  17. +1 −1 parboiled-core/src/main/scala/org/parboiled2/support/RunResult.scala
  18. +1 −1 parboiled-core/src/main/scala/org/parboiled2/support/TailSwitch.scala
  19. +1 −1 parboiled-core/src/main/scala/org/parboiled2/util/Base64.scala
  20. +1 −1 parboiled-core/src/test/scala/org/parboiled2/ActionSpec.scala
  21. +1 −1 parboiled-core/src/test/scala/org/parboiled2/CalculatorSpec.scala
  22. +1 −1 parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala
  23. +1 −1 parboiled-core/src/test/scala/org/parboiled2/CutSpec.scala
  24. +1 −1 parboiled-core/src/test/scala/org/parboiled2/DSLTest.scala
  25. +1 −1 parboiled-core/src/test/scala/org/parboiled2/DefaultArgumentsSpec.scala
  26. +1 −1 parboiled-core/src/test/scala/org/parboiled2/MetaRuleSpec.scala
  27. +1 −1 parboiled-core/src/test/scala/org/parboiled2/ReductionTypeSpec.scala
  28. +1 −1 parboiled-core/src/test/scala/org/parboiled2/RunSubParserSpec.scala
  29. +1 −1 parboiled-core/src/test/scala/org/parboiled2/RunningSpec.scala
  30. +1 −1 parboiled-core/src/test/scala/org/parboiled2/TailrecSpec.scala
  31. +1 −1 parboiled-core/src/test/scala/org/parboiled2/TestParserSpec.scala
  32. +1 −1 parboiled-core/src/test/scala/org/parboiled2/util/Base64Spec.scala
  33. +1 −1 parboiled/src/main/scala/org/parboiled2/Base64Parsing.scala
  34. +1 −1 parboiled/src/main/scala/org/parboiled2/DynamicRuleDispatch.scala
  35. +1 −1 scalaParser/src/main/scala/scalaparser/L4_Xml.scala
@@ -64,4 +64,4 @@ class ABCParser(val input: ParserInput) extends Parser {
def B: Rule0 = rule {
'b' ~ optional(B) ~ 'c'
}
}
}
@@ -70,4 +70,4 @@ class Calculator1(val input: ParserInput) extends Parser {
def Number = rule { capture(Digits) ~> (_.toInt) }

def Digits = rule { oneOrMore(CharPredicate.Digit) }
}
}
@@ -89,4 +89,4 @@ class Calculator2(val input: ParserInput) extends Parser {
def Number = rule { capture(Digits) ~> Value }

def Digits = rule { oneOrMore(CharPredicate.Digit) }
}
}
@@ -67,4 +67,4 @@ class CsvParser(val input: ParserInput, headerPresent: Boolean, fieldDelimiter:
def NL = rule { optional('\r') ~ '\n' }

def OWS = rule { zeroOrMore(' ') }
}
}
@@ -102,4 +102,4 @@ object JsonParser {
val WhiteSpaceChar = CharPredicate(" \n\r\t\f")
val QuoteBackslash = CharPredicate("\"\\")
val QuoteSlashBackSlash = QuoteBackslash ++ "/"
}
}
@@ -41,4 +41,4 @@ class CsvParserSpec extends Specification {

def file(header: Record, records: Record*) = Right(CsvFile(Some(header), records.toVector))
def record(fields: String*) = Record(fields.toVector)
}
}
@@ -70,4 +70,4 @@ class JsonParserSpec extends Specification {
case Failure(e) => throw e
}
}
}
}
@@ -26,4 +26,4 @@ class JsonParserBenchmark {
@Benchmark
def json4SJackson(state: TestState) =
org.json4s.jackson.JsonMethods.parse(state.json)
}
}
@@ -272,4 +272,4 @@ class ErrorFormatter(showExpected: Boolean = true,
case SemanticPredicate "test"
}
}
}
}
@@ -154,4 +154,4 @@ object RuleTrace {
final case class RuleCall(target: String) extends Base
final case class Terminal(terminal: RuleTrace.Terminal) extends Base
}
}
}
@@ -109,4 +109,4 @@ object ParserInput {
def sliceString(start: Int, end: Int) = new String(chars, start, math.max(end - start, 0))
def sliceCharArray(start: Int, end: Int) = java.util.Arrays.copyOfRange(chars, start, end)
}
}
}
@@ -128,4 +128,4 @@ abstract class RuleDSL
with RuleDSLActions

// phantom type for WithSeparatedBy pimp
trait Repeated
trait Repeated
@@ -85,4 +85,4 @@ trait RuleDSLActions {
sealed trait ActionOperator[I <: HList, O <: HList, Ops] {
def ~> : Ops
}
}
}
@@ -110,4 +110,4 @@ trait RuleDSLCombinators {
trait WithSeparatedBy[I <: HList, O <: HList] {
def separatedBy(separator: Rule0): Rule[I, O] = `n/a`
}
}
}
@@ -252,4 +252,4 @@ class ValueStack private[parboiled2] (initialSize: Int, maxSize: Int) extends It
}

class ValueStackOverflowException extends RuntimeException
class ValueStackUnderflowException extends RuntimeException
class ValueStackUnderflowException extends RuntimeException
@@ -76,4 +76,4 @@ object Join {
// convert R to R :: HNil
implicit def forAny[I <: HList, L1 <: HList, L2 <: HList, R, Acc <: HList, Out <: HList](implicit x: Aux[I, L1, L2, R :: HNil, Acc, I, Out]): Aux[I, L1, L2, R, Acc, I, Out] = `n/a`
}
}
}
@@ -44,4 +44,4 @@ object RunResult {
protected type JA[I <: HList, R, In0 <: HList, Out0 <: HList] = Join.Aux[I, HNil, HNil, R, HNil, In0, Out0]
implicit def forAny[T]: Aux[T, Rule0] = `n/a`
}
}
}
@@ -68,4 +68,4 @@ object TailSwitch {
implicit def iter3[L <: HList, LH, LT <: HList, T <: HList, TH, TT <: HList, R <: HList, RI <: HList, Out <: HList]
(implicit next: Aux[L, LT, T, TT, R, LH :: RI, Out]): Aux[L, LH :: LT, T, TH :: TT, R, RI, Out] = `n/a`
}
}
}
@@ -421,4 +421,4 @@ class Base64(alphabet: String) {

dArr
}
}
}
@@ -189,4 +189,4 @@ class ActionSpec extends TestParserSpec {
"b" must beMismatched
}
}
}
}
@@ -102,4 +102,4 @@ class CalculatorSpec extends TestParserSpec {
|""")
}
}
}
}
@@ -259,4 +259,4 @@ class CombinatorSpec extends TestParserSpec {
"axxx" must beMismatched
}
}
}
}
@@ -38,4 +38,4 @@ class CutSpec extends TestParserSpec {
|""")
}
}
}
}
@@ -59,4 +59,4 @@ class DSLTest(val input: ParserInput) extends Parser {

def DigitOptional_Checked: Rule1[Option[Int]] = DigitOptional
def DigitOptional = rule { optional(Digit) }
}
}
@@ -32,4 +32,4 @@ class DefaultArgumentsSpec extends Specification {
new Foo("foo").Foo.run() === Success(A(0, 2))
}
}
}
}
@@ -30,4 +30,4 @@ class MetaRuleSpec extends TestParserSpec {
"abcd" must beMismatched
}
}
}
}
@@ -42,4 +42,4 @@ class ReductionTypeSpec extends Specification {
}

def ruleTypeOf[T](f: FooParser Rule1[T])(implicit tag: ClassTag[T]) = tag.runtimeClass
}
}
@@ -47,4 +47,4 @@ class RunSubParserSpec extends TestParserSpec {
|""")
}
}
}
}
@@ -52,4 +52,4 @@ class RunningSpec extends Specification with NoNumberOfTimes {
p.go() === Success(())
}
}
}
}
@@ -34,4 +34,4 @@ class TailrecSpec extends TestParserSpec {
new String(chars) must beMatched
}
}
}
}
@@ -51,4 +51,4 @@ abstract class TestParserSpec extends Specification with NoReferenceDsl with NoN
targetRule.run()
}
}
}
}
@@ -45,4 +45,4 @@ class Base64Spec extends Specification {
}.reduceLeft(_ and _)
}
}
}
}
@@ -76,4 +76,4 @@ object Base64Parsing {

def decodeString(codec: Base64)(chars: Array[Char]): Array[Byte] = codec.decodeFast(chars)
def decodeBlock(codec: Base64)(chars: Array[Char]): Array[Byte] = codec.decode(chars)
}
}
@@ -84,4 +84,4 @@ object DynamicRuleDispatch {
(drd, scala.collection.immutable.Seq(..$ruleNames))"""
}
}
}
}
@@ -120,4 +120,4 @@ trait L4_Xml { this: Parser
private def ETagP = rule( "</" ~ Name ~ WL.? ~ ">" )
private def ContentP = rule( CharData.? ~ ((ElemPattern | ScalaPatterns) ~ CharData.?).* )
private def ScalaPatterns = rule( "{" ~ Patterns ~ WL ~ "}" )
}
}

0 comments on commit 3e12de7

Please sign in to comment.
You can’t perform that action at this time.