AsciiDocLexer

io.eleven19.ascribe.lexer.AsciiDocLexer
object AsciiDocLexer

Provides tokenisation primitives for AsciiDoc content.

Parsley's Lexer is used to configure word recognition (via LexicalDesc) and to ensure that keyword/operator boundaries are respected. Raw character-level parsers handle the newline-sensitive, line-oriented aspects of the format.

Attributes

Source
AsciiDocLexer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fully[A](p: Parsley[A]): Parsley[A]

Fully wraps a parser: skips leading whitespace and asserts end-of-input at the end.

Fully wraps a parser: skips leading whitespace and asserts end-of-input at the end.

Attributes

Source
AsciiDocLexer.scala
def isContentChar(c: Char): Boolean

Returns true for characters that may appear as unadorned prose text.

Returns true for characters that may appear as unadorned prose text.

Excluded: control characters, newlines, and the four inline markup delimiters (*, _, `, \).

Attributes

Source
AsciiDocLexer.scala

Concrete fields

val blankLine: Parsley[Unit]

Matches a blank line (optional horizontal whitespace then EOL).

Matches a blank line (optional horizontal whitespace then EOL).

Attributes

Source
AsciiDocLexer.scala
val contentChar: Parsley[Char]

Parses a single unadorned prose character.

Parses a single unadorned prose character.

Attributes

Source
AsciiDocLexer.scala
val eol: Parsley[Unit]

Matches an end-of-line sequence (\n or \r\n) and discards it.

Matches an end-of-line sequence (\n or \r\n) and discards it.

Attributes

Source
AsciiDocLexer.scala
val eolOrEof: Parsley[Unit]

End of line or end of input – used for the final line of a document.

End of line or end of input – used for the final line of a document.

Attributes

Source
AsciiDocLexer.scala
val hspace: Parsley[Char]

Matches a single space or tab (horizontal whitespace – does not match newlines).

Matches a single space or tab (horizontal whitespace – does not match newlines).

Attributes

Source
AsciiDocLexer.scala
val hspaces: Parsley[Unit]

Skips zero or more horizontal whitespace characters.

Skips zero or more horizontal whitespace characters.

Attributes

Source
AsciiDocLexer.scala
val nonEolChar: Parsley[Char]

Parses any character that is not a newline (used inside delimited spans).

Parses any character that is not a newline (used inside delimited spans).

Attributes

Source
AsciiDocLexer.scala
val plainText: Parsley[String]

Parses one or more unadorned prose characters as a string.

Parses one or more unadorned prose characters as a string.

Attributes

Source
AsciiDocLexer.scala
val unpairedMarkupChar: Parsley[Char]

Parses a single inline-markup character (*, _, or `) that is not a newline. Used as a fallback when a delimiter sequence does not open a valid span.

Parses a single inline-markup character (*, _, or `) that is not a newline. Used as a fallback when a delimiter sequence does not open a valid span.

Attributes

Source
AsciiDocLexer.scala
val word: Parsley[String]

Parses a single word (identifier-like token), consuming trailing horizontal whitespace.

Parses a single word (identifier-like token), consuming trailing horizontal whitespace.

Attributes

Source
AsciiDocLexer.scala