org.fusesource.scalate.scaml

ScamlParser

class ScamlParser extends IndentedParser with ScalaParseSupport

Parses a HAML/Scala based document. Original inspired by the ruby version at http://haml-lang.com/

Linear Supertypes
ScalaParseSupport, IndentedParser, RegexParsers, Parsers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ScamlParser
  2. ScalaParseSupport
  3. IndentedParser
  4. RegexParsers
  5. Parsers
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScamlParser (upto_type: String)

Type Members

  1. type Elem = Char

    Definition Classes
    RegexParsers → Parsers
  2. type Input = Reader[Elem]

    Definition Classes
    Parsers

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val EofCh : Char

    Definition Classes
    ScalaParseSupport
  7. def OnceParser [T] (f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

    Definition Classes
    Parsers
  8. def Parser [T] (f: (Input) ⇒ ParseResult[T]): Parser[T]

    Definition Classes
    Parsers
  9. def accept [U] (expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    ScalaParseSupport → Parsers
  10. def accept [ES] (es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  11. implicit def accept (e: Elem): Parser[Elem]

    Attributes
    implicit
    Definition Classes
    Parsers
  12. def acceptIf (p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]

    Definition Classes
    Parsers
  13. def acceptMatch [U] (expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    Parsers
  14. def acceptSeq [ES] (es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  15. lazy val anyChar : Parser[Char]

    Definition Classes
    ScalaParseSupport
  16. val any_space_then_nl : Parser[Text]

  17. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  18. val attribute : Parser[Attribute]

  19. def attribute_statement : Parser[Attribute]

  20. def attributes : Parser[List[(Any, Any)]]

  21. def chainl1 [T, U] (first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  22. def chainl1 [T] (p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  23. def chainr1 [T, U] (p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]

    Definition Classes
    Parsers
  24. lazy val charEscapeSeq : Parser[Char]

    Definition Classes
    ScalaParseSupport
  25. lazy val characterLiteral : Parser[String]

    Definition Classes
    ScalaParseSupport
  26. def chrExcept (cs: Char*): Parser[Char]

    Definition Classes
    ScalaParseSupport
  27. def chrOf (cs: String): Parser[Char]

    Definition Classes
    ScalaParseSupport
  28. def chrOf (cs: Char*): Parser[Char]

    Definition Classes
    ScalaParseSupport
  29. def class_entry : Parser[(Any, Any)]

  30. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def commit [T] (p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  32. val css_name : Parser[Text]

  33. def current_indent (strict: Boolean = false): Parser[Any]

    Definition Classes
    IndentedParser
  34. val decimal_number : Parser[Text]

  35. def doctype_statement : Parser[Doctype]

  36. val dot : Parser[Text]

  37. lazy val doubleQuotedChars : Parser[String]

    Definition Classes
    ScalaParseSupport
  38. def dquoted [T] (p: Parser[T]): Parser[T]

    Definition Classes
    ScalaParseSupport
  39. def elem (e: Elem): Parser[Elem]

    Definition Classes
    Parsers
  40. def elem (kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]

    Definition Classes
    Parsers
  41. def element_statement : Parser[Element]

  42. def element_text : Parser[Option[TextExpression]]

  43. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  44. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  45. def err (msg: String): Parser[Nothing]

    Definition Classes
    Parsers
  46. def eval_string_escapes (value: Text): Text

  47. def evaluated_fragment : Parser[List[Text]]

  48. def evaluated_statement : Parser[EvaluatedText]

  49. def executed_statement : Parser[Executed]

  50. def expression : Parser[Any]

  51. def failure (msg: String): Parser[Nothing]

    Definition Classes
    Parsers
  52. def filter_statement : Parser[FilterStatement]

  53. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  54. val floating_point_number : Parser[Text]

  55. def full_element_statement : Parser[Element]

  56. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  57. def guard [T] (p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  58. def guarded [T, U] (p1: Parser[T], p2: Parser[U]): Parser[U]

    Once p1 is matched, disable backtracking.

    Once p1 is matched, disable backtracking. Does not consume p1 and yields the result of p2

    Definition Classes
    ScalaParseSupport
  59. def haml_comment_statement : Parser[ScamlComment]

  60. def handleWhiteSpace (source: CharSequence, offset: Int): Int

    Attributes
    protected
    Definition Classes
    RegexParsers
  61. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  62. def hash_attribute_entry : Parser[(Any, Any)]

  63. def hash_style_attributes : Parser[List[(Any, Any)]]

  64. lazy val hexDigit : Parser[Char]

    Definition Classes
    ScalaParseSupport
  65. def html_attribute_entry : Parser[(Any, Any)]

  66. def html_comment_statement : Parser[HtmlComment]

  67. def html_style_attributes : Parser[List[(Any, Any)]]

  68. def id_entry : Parser[(Any, Any)]

  69. def indent [U] (p: Parser[U], strict: Boolean): Parser[U]

    Definition Classes
    IndentedParser
  70. var indent_desc : String

    Definition Classes
    IndentedParser
  71. var indent_level : Int

    Definition Classes
    IndentedParser
  72. var indent_unit : Parser[Any]

    Definition Classes
    IndentedParser
  73. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  74. var lastNoSuccess : NoSuccess

    Definition Classes
    Parsers
  75. implicit def literal (s: String): Parser[String]

    Attributes
    implicit
    Definition Classes
    RegexParsers
  76. def literal_text (sanitize: Option[Boolean]): Parser[LiteralText]

  77. val litteral_fragment : Parser[List[Text]]

  78. val litteral_part : Parser[Text]

  79. def litteral_part_delimiter : Parser[Serializable]

  80. def log [T] (p: ⇒ Parser[T])(name: String): Parser[T]

    Definition Classes
    Parsers
  81. var mismatch_indent : Parser[Any]

    Definition Classes
    IndentedParser
  82. var mismatch_indent_desc : String

    Definition Classes
    IndentedParser
  83. def mkList [T] : (~[T, List[T]]) ⇒ List[T]

    Definition Classes
    Parsers
  84. lazy val multiLineChars : Parser[String]

    Definition Classes
    ScalaParseSupport
  85. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  86. val nl : Parser[Text]

  87. def not [T] (p: ⇒ Parser[T]): Parser[Unit]

    Definition Classes
    Parsers
  88. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  89. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  90. lazy val octalDigit : Parser[Char]

    Definition Classes
    ScalaParseSupport
  91. lazy val octalEscapeSeq : Parser[Char]

    Definition Classes
    ScalaParseSupport
  92. def opt [T] (p: ⇒ Parser[T]): Parser[Option[T]]

    Definition Classes
    Parsers
  93. val opt_dot : Parser[Text]

  94. val opt_space : Parser[Text]

  95. def parse [T] (p: Parser[T], in: String): T

  96. def parse (in: String): List[Statement]

  97. def parse [T] (p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  98. def parse [T] (p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  99. def parse [T] (p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  100. def parseAll [T] (p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  101. def parseAll [T] (p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  102. def parseAll [T] (p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  103. def parser : Parser[List[Statement]]

  104. def phrase [T] (p: Parser[T]): Parser[T]

    Definition Classes
    RegexParsers → Parsers
  105. def positioned [T <: Positional] (p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    RegexParsers → Parsers
  106. def prefixed [T, U] (p1: Parser[T], p2: Parser[U]): Parser[U]

    Once p1 is matched, disable backtracking.

    Once p1 is matched, disable backtracking. Consumes p1 and yields the result of p2

    Definition Classes
    ScalaParseSupport
  107. val qualified_type : Parser[Text]

  108. implicit def regex (r: Regex): Parser[String]

    Attributes
    implicit
    Definition Classes
    RegexParsers
  109. def rep [T] (p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  110. def rep1 [T] (first: ⇒ Parser[T], p0: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
    Annotations
    @migration
    Migration

  111. def rep1 [T] (p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  112. def rep1sep [T] (p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  113. def repN [T] (num: Int, p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  114. def repRange [T] (min: Int, max: Int, p: ⇒ Parser[T]): Parser[List[T]]

    A parser generator for a specified range of repetitions.

    A parser generator for a specified range of repetitions.

    repRange(min, max, p) uses p' from min' upto max' times to parse the input (the result is a List' of the consecutive results of p')

    p

    a Parser' that is to be applied successively to the input

    returns

    A parser that returns a list of results produced by repeatedly applying p' to the input (and that only succeeds if p' matches exactly n' times).

    Definition Classes
    IndentedParser
  115. def repsep [T] (p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  116. val ruby_string_literal : Parser[Text]

  117. val scalaType : Regex

    Definition Classes
    ScalaParseSupport
  118. val scalaTypeChar : String

    Definition Classes
    ScalaParseSupport
  119. val scala_ident : Parser[Text]

  120. val scala_string_literal : Parser[Text]

  121. def skipWhitespace : Boolean

    Definition Classes
    IndentedParser → RegexParsers
  122. var skipWhitespaceOn : Boolean

    Definition Classes
    IndentedParser
  123. def skip_whitespace [T] (p: ⇒ Parser[T], enable: Boolean): Parser[T]

    Definition Classes
    IndentedParser
  124. def someUpto [T] (p: Parser[T]): Parser[Text]

    Definition Classes
    ScalaParseSupport
  125. val space : Parser[Text]

  126. def squoted [T] (p: Parser[T]): Parser[T]

    Definition Classes
    ScalaParseSupport
  127. def statement : Parser[Statement]

  128. def statement_block : Parser[List[Statement]]

  129. lazy val stringLiteral : Parser[String]

    Definition Classes
    ScalaParseSupport
  130. val string_literal : Parser[Text]

  131. def success [T] (v: T): Parser[T]

    Definition Classes
    Parsers
  132. def surround [T] (delim: Parser[Any], p: Parser[T]): Parser[T]

    Definition Classes
    ScalaParseSupport
  133. def surround [T] (c: Char, p: Parser[T]): Parser[T]

    Definition Classes
    ScalaParseSupport
  134. def symbol : Parser[Text]

  135. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  136. val tag_ident : Parser[Text]

  137. def takeUntil (cond: Parser[Any], p: Parser[Char]): Parser[String]

    Definition Classes
    ScalaParseSupport
  138. def takeUntil (cond: Parser[Any]): Parser[String]

    Definition Classes
    ScalaParseSupport
  139. def takeWhile (p: Parser[Char]): Parser[String]

    Definition Classes
    ScalaParseSupport
  140. def text (p1: Parser[String]): Parser[Text]

    Definition Classes
    ScalaParseSupport
  141. def text_statement : Parser[LiteralText]

  142. def toString (): String

    Definition Classes
    AnyRef → Any
  143. def tquoted [T] (p: Parser[T]): Parser[T]

    Definition Classes
    ScalaParseSupport
  144. def trim : Parser[Value]

  145. lazy val tripleQuote : Parser[Unit]

    Definition Classes
    ScalaParseSupport
  146. lazy val uniEscapeSeq : Parser[Char]

    Definition Classes
    ScalaParseSupport
  147. def upto [T] (p1: Parser[T]): Parser[Text]

    Definition Classes
    ScamlParserScalaParseSupport
  148. val upto_type : String

  149. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  150. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  151. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  152. val whiteSpace : Regex

    Attributes
    protected
    Definition Classes
    RegexParsers
  153. val whole_number : Parser[Text]

  154. def wrapped [T, U] (prefix: Parser[T], postfix: Parser[U]): Parser[Text]

    Definition Classes
    ScalaParseSupport
  155. val xml_ident : Parser[Text]

Inherited from ScalaParseSupport

Inherited from IndentedParser

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any