object Parsers extends Parser
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Parsers
- Parser
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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 ImportFinder[_](implicit arg0: P[_]): P[String]
- def ImportSplitter[_](implicit arg0: P[_]): P[Seq[ImportTree]]
- def Splitter[_](implicit arg0: P[_]): P[(String, Seq[(Int, String)])]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defaultHighlight(buffer: Vector[Char], comment: Attrs, type: Attrs, literal: Attrs, keyword: Attrs, notImplemented: Attrs, reset: Attrs): Vector[Char]
- Definition Classes
- Parsers → Parser
- def defaultHighlightIndices(buffer: Vector[Char], comment: Attrs, type: Attrs, literal: Attrs, keyword: Attrs, reset: Attrs): Seq[(Int, Attrs)]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatFastparseError(fileName: String, rawCode: String, f: Failure): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def highlightIndices[T](buffer: Vector[Char], ruleColors: PartialFunction[String, T], endColor: T): Seq[(Int, T)]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isObjDef(code: String): Boolean
- Definition Classes
- Parsers → Parser
- 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 parseImportHooks(source: CodeSource, stmts: Seq[String]): (Seq[String], Seq[ImportTree])
- Definition Classes
- Parser
- def parseImportHooksWithIndices(source: CodeSource, stmts: Seq[(Int, String)]): (Seq[String], Seq[ImportTree])
- Definition Classes
- Parsers → Parser
- def scriptBlocksWithStartIndices(rawCode: String, fileName: String): Either[ScriptSplittingError, Seq[ScriptBlock]]
- Definition Classes
- Parsers → Parser
- def split(code: String, ignoreIncomplete: Boolean, fileName: String): Option[Either[String, Seq[String]]]
Attempts to break a code blob into multiple statements.
Attempts to break a code blob into multiple statements. Returns
Noneif it thinks the code blob is "incomplete" and requires more input- Definition Classes
- Parsers → Parser
- def splitScript(rawCode: String, fileName: String): Either[String, IndexedSeq[(String, Seq[String])]]
Splits up a script file into its constituent blocks, each of which is a tuple of (leading-whitespace, statements).
Splits up a script file into its constituent blocks, each of which is a tuple of (leading-whitespace, statements). Leading whitespace is returned separately so we can later manipulate the statements e.g. by adding
val res2 =without the whitespace getting in the way- Definition Classes
- Parsers → Parser
- def splitScript(code: String): Parsed[Seq[(String, Seq[(Int, String)])]]
- def splitScriptWithStart(rawCode: String, fileName: String): Either[Failure, IndexedSeq[(Int, String, Seq[(Int, String)])]]
- def splitScriptWithStart(code: String): Parsed[Seq[(Int, (String, Seq[(Int, String)]))]]
- def stringSymWrap(s: String): String
- def stringWrap(s: String): String
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()