class ScalametaParser extends AnyRef

Self Type
ScalametaParser
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalametaParser
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ScalametaParser(input: Input)(implicit dialect: Dialect, options: ParserOptions)

Type Members

  1. sealed abstract class InfixContext extends AnyRef
  2. trait PatternContextSensitive extends AnyRef

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not.

    Methods which implicitly propagate the context in which they were called: either in a pattern context or not. Formerly, this was threaded through numerous methods as boolean isPattern.

  3. trait SeqContextSensitive extends PatternContextSensitive

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed.

    Methods which implicitly propagate whether the initial call took place in a context where sequences are allowed. Formerly, this was threaded through methods as boolean seqOK.

  4. sealed trait TemplateOwner extends AnyRef
  5. implicit class XtensionToken extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalametaParser toany2stringadd[ScalametaParser] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser toArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def accept[T <: Token](implicit arg0: ClassTag[T]): Unit

    Consume one token of the specified type, or signal an error if it is not there.

  7. def acceptIfStatSep(): Boolean
    Annotations
    @inline()
  8. def acceptStatSep(): Boolean
  9. def acceptStatSepOpt(): Boolean
  10. final def ahead[T](body: => T): T

    Scoping operator used to temporarily look into the future.

    Scoping operator used to temporarily look into the future. Backs up token iterator before evaluating a block and restores it after.

    Annotations
    @inline()
  11. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]
  12. def annotsBuf[T >: Annot](annots: ListBuffer[T], skipNewLines: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowArgss: Boolean = true): Unit
  13. def argumentPattern(): Pat
  14. def argumentPatterns(): collection.immutable.List[Pat]
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def atCurPos[T <: Tree](body: => T): T
  17. def atCurPosEmpty[T <: Tree](body: => T): T
  18. def atCurPosEmptyNext[T <: Tree](body: => T): T
  19. def atCurPosNext[T <: Tree](body: => T): T
  20. def atOrPeekAfterEOL(body: (Token) => Boolean): Boolean
  21. def atPos[T <: Tree](pos: Int)(body: => T): T
  22. def atPos[T <: Tree](start: Int, end: EndPos)(body: T): T
    Annotations
    @inline()
  23. def atPos[T <: Tree](start: StartPos, end: EndPos)(body: => T): T
  24. def atPosEmpty[T <: Tree](pos: StartPos)(body: => T): T
  25. def atPosEmpty[T <: Tree](pos: Int)(body: => T): T
  26. def atPosIf[T <: Tree](start: Int, end: EndPos)(body: Option[T]): Option[T]
  27. def atPosIf[T <: Tree](start: StartPos, end: EndPos)(body: => Option[T]): Option[T]
  28. def atPosOpt[T <: Tree](start: Int, end: EndPos)(body: T): T
  29. def atPosOpt[T <: Tree](start: StartPos, end: EndPos)(body: => T): T
  30. def atPosTry[T <: Tree](start: StartPos, end: EndPos)(body: => Try[T]): Try[T]
  31. def atPosTryOpt[T <: Tree](start: StartPos, end: EndPos)(body: => Try[T]): Try[T]
  32. def atPosWithBody[T <: Tree](startPos: Int, body: T, endPos: Int): T
  33. def autoEndPos[T <: Tree](start: StartPos)(body: => T): T
    Annotations
    @inline()
  34. def autoEndPos[T <: Tree](start: Int)(body: => T): T
    Annotations
    @inline()
  35. def autoEndPosOpt[T <: Tree](start: StartPos)(body: => T): T
    Annotations
    @inline()
  36. def autoEndPosOpt[T <: Tree](start: Int)(body: => T): T
    Annotations
    @inline()
  37. def autoPos[T <: Tree](body: => T): T
  38. def autoPosIf[T <: Tree](body: => Option[T]): Option[T]
  39. def autoPosOpt[T <: Tree](body: => T): T
  40. def autoPosTry[T <: Tree](body: => Try[T]): Try[T]
  41. def autoPrevPos[T <: Tree](body: => T): T
    Annotations
    @inline()
  42. def blockStatSeq(allowRepeated: Boolean = false): collection.immutable.List[Stat]
  43. def bound[T](implicit arg0: ClassTag[T]): Option[Type]
  44. def caseClause(forceSingleExpr: Boolean = false): Case
  45. def caseClauses(): collection.immutable.List[Case]
  46. def caseClausesIfAny(): Option[collection.immutable.List[Case]]
  47. def casesBlock(): CasesBlock
  48. def casesBlockIfAny(): Option[CasesBlock]
  49. def classDef(mods: collection.immutable.List[Mod]): Class
  50. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  51. final def commaSeparated[T <: Tree](part: => T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  52. final def commaSeparatedWithIndex[T <: Tree](part: (Int) => T)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): collection.immutable.List[T]
    Annotations
    @inline()
  53. def condExpr(): Term
  54. def constrInternal(): Block
  55. def contextBoundOrAlias(allowAlias: Boolean): Type
  56. def currIndex: Int
    Annotations
    @inline()
  57. def currToken: Token
    Annotations
    @inline()
  58. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  59. def derivesClasses(): collection.immutable.List[Type]
  60. final def dropAnyBraces[T](body: => T): T
    Annotations
    @inline()
  61. def ellipsis[T <: Tree](ell: Ellipsis, extraSkip: => Unit)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T with Quasi
  62. def ellipsis[T <: Tree](ell: Ellipsis)(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T with Quasi
  63. def ellipsis[T <: Tree](ell: Ellipsis, rank: Int, extraSkip: => Unit = {})(implicit arg0: AstInfo[T], arg1: ClassTag[T]): T
  64. def endMarker(): Stat
  65. def ensuring(cond: (ScalametaParser) => Boolean, msg: => Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  66. def ensuring(cond: (ScalametaParser) => Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  67. def ensuring(cond: Boolean, msg: => Any): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  68. def ensuring(cond: Boolean): ScalametaParser
    Implicit
    This member is added by an implicit conversion from ScalametaParser toEnsuring[ScalametaParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  69. def entryPointAmmonite(): MultiSource
  70. def entrypointCase(): Case
  71. def entrypointCtor(): Ctor
  72. def entrypointEnumerator(): Enumerator
  73. def entrypointExpr(): Term
  74. def entrypointImportee(): Importee
  75. def entrypointImporter(): Importer
  76. def entrypointInit(): Init
  77. def entrypointModifier(): Mod
  78. def entrypointPattern(): Pat
  79. def entrypointSelf(): Self
  80. def entrypointSource(): Source
  81. def entrypointStat(): Stat
  82. def entrypointTemplate(): Template
  83. def entrypointTermParam(): Param
  84. def entrypointType(): Type
  85. def entrypointTypeParam(): Param
  86. def enumRepeatedCaseDef(mods: collection.immutable.List[Mod]): RepeatedEnumCase
  87. def enumSingleCaseDef(mods: collection.immutable.List[Mod]): EnumCase
  88. def enumerators(): collection.immutable.List[Enumerator]
  89. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  90. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  91. def exportStmt(): Stat
  92. def expr(location: Location, allowRepeated: Boolean): Term
  93. def expr(): Term
  94. def exprSimpleType(): Type
  95. def exprTypeArgs(): ArgClause
  96. def extensionGroupDecl(mods: collection.immutable.List[Mod]): ExtensionGroup
  97. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  98. def getAfterOptNewLine[A](body: => Option[A]): Option[A]
  99. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  100. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  101. def ifClause(mods: collection.immutable.List[Mod] = Nil): If
  102. def importStmt(): Import
  103. def importWildcardOrName(): Importee
  104. def importee(): Importee
  105. def importeeRename(from: Name): Importee
  106. def importees(): collection.immutable.List[Importee]
  107. def importer(): Importer
  108. var in: TokenIterator
  109. final def inBraces[T](body: => T): T
    Annotations
    @inline()
  110. final def inBracesOr[T](body: => T)(ifEmpty: => T): T
    Annotations
    @inline()
  111. final def inBracesOrNil[T](body: => collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  112. final def inBrackets[T](body: => T): T
    Annotations
    @inline()
  113. final def inParens[T](body: => T): T
    Annotations
    @inline()
  114. final def inParensOr[T](body: => T)(ifEmpty: => T): T
    Annotations
    @inline()
  115. final def indented[T](body: => T): T
    Annotations
    @inline()
  116. def init(): Init
  117. def initInsideConstructor(): Init
  118. def initInsideTemplate(): Init
  119. def initRest(typeParser: => Type, allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowBraces: Boolean = false): Init
  120. def initRestAt(startPos: StartPos, tpe: Type)(allowArgss: Boolean, insidePrimaryCtorAnnot: Boolean = false, allowBraces: Boolean = false): Init
  121. def inlineMatchClause(inlineMods: collection.immutable.List[Mod]): Match

    Deals with Scala 3 concept of

    Deals with Scala 3 concept of

    inline x match { ...

    . Since matches can also be chained in Scala 3 we need to create the Match first and only then add the the inline modifier.

  122. implicit def intToIndexPos(index: Int): Pos
  123. def interpolatePat(): Interpolate
  124. def interpolateTerm(): Interpolate
  125. def isAfterOpt[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B]): Boolean
  126. def isAfterOptNewLine[T](implicit arg0: ClassTag[T]): Boolean
  127. def isAtEndMarker(): Boolean
  128. def isImplicitStatSep(): Boolean
    Annotations
    @inline()
  129. def isIndentingOrEOL(nonOptBracesOK: => Boolean): Boolean
  130. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  131. def isStar(tok: Token): Boolean
  132. def isStar: Boolean
    Annotations
    @inline()
  133. def localDef(implicitMod: Option[Implicit]): Stat
  134. def memberParamClauseGroup(isFirst: Boolean): Option[ParamClauseGroup]
  135. def memberParamClauseGroups(): collection.immutable.List[ParamClauseGroup]
  136. def mixinQualifier(): Name
  137. def modifiersBuf(buf: ListBuffer[Mod], isLocal: Boolean = false, isParams: Boolean = false): Unit
  138. implicit def modsToPos(mods: collection.immutable.List[Mod]): Pos
  139. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  140. def newLineOpt(): Unit
    Annotations
    @inline()
  141. def newLineOptWhenFollowedBy[T](implicit arg0: ClassTag[T]): Boolean
  142. def newLineOptWhenFollowedBy(pred: (Token) => Boolean): Boolean
  143. def newLinesOpt(): Unit
    Annotations
    @inline()
  144. def next(): Unit
  145. def nextIfPair[A](pred: (Token) => Boolean)(implicit arg0: ClassTag[A]): Boolean
  146. def nextIfPair[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B]): Boolean
  147. def nextTwice(): Unit
  148. def nonLocalDefOrDcl(): Stat
  149. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  150. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  151. def objectDef(mods: collection.immutable.List[Mod]): Object
  152. implicit def optionTreeToPos(tree: Option[Tree]): Pos
  153. def paramType(): Type
  154. def parseAmmonite(): MultiSource
  155. def parseCase(): Case
  156. def parseCtor(): Ctor
  157. def parseEnumerator(): Enumerator
  158. def parseImportee(): Importee
  159. def parseImporter(): Importer
  160. def parseInit(): Init
  161. def parseMod(): Mod
  162. def parsePat(): Pat
  163. def parseRule[T <: Tree](rule: => T): T
  164. def parseRule[T <: Tree](rule: (ScalametaParser.this.type) => T): T
  165. def parseSelf(): Self
  166. def parseSource(): Source
  167. def parseStat(): Stat
  168. def parseTemplate(): Template
  169. def parseTerm(): Term
  170. def parseTermParam(): Param
  171. def parseType(): Type
  172. def parseTypeParam(): Param
  173. def parseUnquotePat(): Pat
  174. def parseUnquoteTerm(): Term
  175. def patDefOrDcl(mods: collection.immutable.List[Mod]): Stat
  176. def path(thisOK: Boolean = true): Term.Ref
  177. def pattern(): Pat

    Default entry points into some pattern contexts.

  178. def patternTyp(): Type
  179. def patternTypeArgs(): ArgClause
  180. def peekIndex: Int
    Annotations
    @inline()
  181. def peekToken: Token
    Annotations
    @inline()
  182. def postfixExpr(allowRepeated: Boolean): Term
  183. def prefixExpr(allowRepeated: Boolean): Term
  184. def prevIndex: Int
    Annotations
    @inline()
  185. def prevToken: Token
    Annotations
    @inline()
  186. def primaryCtor(): Primary
  187. def qualId(): Term.Ref
  188. def quasiquoteCase(): Case
  189. def quasiquoteCtor(): Ctor
  190. def quasiquoteEnumerator(): Enumerator
  191. def quasiquoteExpr(): Term
  192. def quasiquoteImportee(): Importee
  193. def quasiquoteImporter(): Importer
  194. def quasiquoteInit(): Init
  195. def quasiquoteModifier(): Mod
  196. def quasiquotePattern(): Pat
  197. def quasiquoteSelf(): Self
  198. def quasiquoteSource(): Source
  199. def quasiquoteStat(): Stat
  200. def quasiquoteTemplate(): Template
  201. def quasiquoteTermParam(): Param
  202. def quasiquoteType(): Type
  203. def quasiquoteTypeParam(): Param
  204. final lazy val reporter: Reporter
  205. def secondaryCtorRest(mods: collection.immutable.List[Mod], name: This, paramss: collection.immutable.Seq[ParamClause]): Secondary
  206. def selector(t: Term, startPos: Int): Select
  207. def seqPatterns(): collection.immutable.List[Pat]
  208. def simpleExpr(allowRepeated: Boolean): Term
  209. def skipAllStatSep(): Boolean
  210. def source(): Source
  211. def stableId(): Term.Ref
  212. def startInfixType(inGivenSig: Boolean = false): Type
  213. def startModType(): Type
  214. def stat(body: => Stat): Stat
  215. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): collection.immutable.List[T]
  216. def statSeqBuf[T <: Tree](stats: ListBuffer[T], statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition"): Boolean
  217. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  218. def template(afterExtend: Boolean = false): Template
  219. def templateBodyOpt(): Body
  220. def templateOpt(): Template
  221. def templateParents(afterExtend: Boolean = false): collection.immutable.List[Init]
  222. def templateParentsWithFirst(allowComma: Boolean, allowWithBody: Boolean = false)(first: Init): collection.immutable.List[Init]
  223. val templateStat: PartialFunction[Token, Stat]
  224. def termName(): Term.Name
  225. def termParam(mod: Option[ParamsType] = None)(paramIdx: Int): Param
  226. def termParamClauses(): collection.immutable.List[ParamClause]
  227. def toCasesBlock(cases: collection.immutable.List[Case]): CasesBlock
  228. def toString(): String
    Definition Classes
    AnyRef → Any
  229. final def tokenSeparated[Sep, T <: Tree](sepFirst: Boolean, part: (Int) => T)(implicit arg0: ClassTag[Sep], arg1: AstInfo[T], arg2: ClassTag[T]): collection.immutable.List[T]
  230. def topLevelTmplDef: Stat

    Hook for IDE, for top-level classes/objects.

  231. val topStat: PartialFunction[Token, Stat]
  232. implicit def treeToTreePos(tree: Tree): Pos
  233. def typ(): Type

    These are default entry points into the pattern context sensitive methods: they are all initiated from non-pattern context.

  234. def typeBounds(): Bounds
  235. def typeDefOrDcl(mods: collection.immutable.List[Mod]): TypeDef
  236. def typeIndentedOpt(): Type
  237. def typeName(): Type.Name
  238. def typeParam(): Param
  239. def typedOpt(): Option[Type]
  240. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T with Quasi
  241. def unquoteExpr(): Term
  242. def unquoteOpt[T <: Tree](pred: => Boolean)(implicit arg0: AstInfo[T]): Option[T with Quasi]
  243. def unquoteOpt[T <: Tree](implicit arg0: AstInfo[T]): Option[T with Quasi]
  244. def unquotePattern(): Pat
  245. def unquoteSeqPattern(): Pat
  246. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  247. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  248. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  249. def xmlLiteralPattern(): Pat
  250. def xmlPat(): Xml
  251. def xmlTerm(): Xml
  252. case object AutoPos extends Pos with Product with Serializable
  253. object OwnedByCaseClass extends TemplateOwner
  254. object OwnedByClass extends TemplateOwner
  255. object OwnedByEnum extends TemplateOwner
  256. object OwnedByGiven extends TemplateOwner
  257. object OwnedByObject extends TemplateOwner
  258. object OwnedByTrait extends TemplateOwner
  259. object noSeq extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are disallowed.

  260. object noSeqWithNamed extends SeqContextSensitive
  261. object outPattern extends PatternContextSensitive

    The implementation of the context sensitive methods for parsing outside of patterns.

  262. implicit object patInfixContext extends InfixContext
  263. object seqOK extends SeqContextSensitive

    The implementation for parsing inside of patterns at points where sequences are allowed.

  264. object seqOKWithNamed extends SeqContextSensitive
  265. object termInfixContext extends InfixContext

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalametaParser toStringFormat[ScalametaParser] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def →[B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser toArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromScalametaParser to any2stringadd[ScalametaParser]

Inherited by implicit conversion StringFormat fromScalametaParser to StringFormat[ScalametaParser]

Inherited by implicit conversion Ensuring fromScalametaParser to Ensuring[ScalametaParser]

Inherited by implicit conversion ArrowAssoc fromScalametaParser to ArrowAssoc[ScalametaParser]

Ungrouped