object CodeSpanParser
Companion with a range of convenient constructors for creating CodeSpanParsers instances, based on existing parser instances or simple specifications of start and end delimiters.
- Alphabetic
- By Inheritance
- CodeSpanParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
apply(parser: PrefixedParser[Seq[CodeSpan]]): CodeSpanParser
Parses a sequence of code spans.
-
def
apply(category: CodeCategory)(parser: PrefixedParser[String]): CodeSpanParser
Parses a single text span and associates it with the given code category.
-
def
apply(category: CodeCategory, start: String, end: String): CodeSpanParser
Parses a single span delimited by the specified start and end strings and associates it with the given code category.
-
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] )
-
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()
-
def
onLineStart(category: CodeCategory)(parser: Parser[String]): CodeSpanParser
Parses a single code span that can only start on a new line or at the start of the input and associates it with the given code category.
-
def
onLineStart(parser: Parser[Seq[CodeSpan]]): CodeSpanParser
Parses code spans that can only start on a new line or at the start of the input.
-
def
recursive(parser: ⇒ CodeSpanParser): CodeSpanParser
Lazily initializes the specified parser for recursive application.
Lazily initializes the specified parser for recursive application.
Standard constructors avoid the cost of by-name arguments, but this factory method can be used for the cases where recursive embedding of a syntax needs to occur.
-
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()