object DocumentParser
Responsible for creating the top level parsers for text markup and template documents, by combining the parser for the root element with a parser for an (optional) configuration header.
- Alphabetic
- By Inheritance
- DocumentParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class DocumentInput(path: Path, source: SourceCursor) extends Product with Serializable
- case class InvalidDocument(errors: Either[NonEmptyChain[ConfigError], NonEmptyChain[Invalid]], path: Path) extends RuntimeException with Product with Serializable
- case class InvalidDocuments(documents: NonEmptyChain[InvalidDocument]) extends RuntimeException with Product with Serializable
- case class ParserError(message: String, path: Path) extends RuntimeException with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forMarkup(rootParser: Parser[RootElement], configProvider: ConfigProvider): (DocumentInput) ⇒ Either[ParserError, UnresolvedDocument]
Combines the specified parsers for the root element and for (optional) configuration headers to create a parser function for an entire text markup document.
-
def
forMarkup(markupParser: MarkupFormat, markupExtensions: MarkupExtensions, configProvider: ConfigProvider): (DocumentInput) ⇒ Either[ParserError, UnresolvedDocument]
Combines the specified markup parsers and extensions and the parser for (optional) configuration headers to create a parser function for an entire text markup document.
-
def
forParser[T](p: (Path) ⇒ Parser[T]): (DocumentInput) ⇒ Either[ParserError, T]
A document parser function for the specified parser that is expected to consume all input.
A document parser function for the specified parser that is expected to consume all input.
The specified function is invoked for each parsed document, so that a parser dependent on the input path can be created.
-
def
forStyleSheets(parser: Parser[Set[StyleDeclaration]]): (DocumentInput) ⇒ Either[ParserError, StyleDeclarationSet]
Builds a document parser for CSS documents based on the specified parser for style declarations.
-
def
forTemplate(rootParser: Parser[TemplateRoot], configProvider: ConfigProvider): (DocumentInput) ⇒ Either[ParserError, TemplateDocument]
Combines the specified parsers for the root element and for (optional) configuration headers to create a parser function for an entire template document.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object DocumentInput extends Serializable
- object InvalidDocument extends Serializable
- object InvalidDocuments extends Serializable
- object ParserError extends Serializable