Packages

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, dialect: Dialect)

Type Members

  1. trait CanEndStat extends AnyRef
  2. trait CantStartStat extends AnyRef
  3. trait CaseDefEnd extends AnyRef
  4. trait CaseIntro extends AnyRef
  5. trait CloseDelim extends AnyRef
  6. trait DclIntro extends AnyRef
  7. trait DefIntro extends AnyRef
  8. trait ExprIntro extends AnyRef
  9. case class IndexPos(index: Int) extends Pos with Product with Serializable
  10. sealed abstract class InfixContext extends AnyRef
  11. class InvalidModCombination[M1 <: Mod, M2 <: Mod] extends AnyRef
  12. trait LineEnd extends AnyRef
  13. trait Literal extends AnyRef
  14. trait LocalModifier extends AnyRef
  15. trait Modifier extends AnyRef
  16. trait NonlocalModifier extends AnyRef
  17. trait NumericLiteral extends AnyRef
  18. 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.

  19. sealed trait Pos extends AnyRef
  20. 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.

  21. trait StatSep extends AnyRef
  22. trait StatSeqEnd extends AnyRef
  23. trait TemplateIntro extends AnyRef
  24. sealed trait TemplateOwner extends AnyRef
  25. trait TokenIterator extends Iterator[Token]
  26. case class TokenPos(token: Token) extends Pos with Product with Serializable
  27. case class TreePos(tree: Tree) extends Pos with Product with Serializable
  28. trait Trivia extends AnyRef
  29. trait TypeIntro extends AnyRef
  30. trait Whitespace extends AnyRef
  31. implicit class XtensionTokenIndex 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: TokenInfo[T]): Unit

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

  7. def acceptOpt[T <: Token](implicit arg0: TokenInfo[T]): Unit

    If current token is T consume it.

  8. def acceptStatSep(): Unit
  9. def acceptStatSepOpt(): Unit
  10. def accessModifier(): Mod
  11. 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()
  12. def annots(skipNewLines: Boolean, allowArgss: Boolean = true): collection.immutable.List[Annot]
  13. def argumentExpr(): Term
  14. def argumentExprs(): collection.immutable.List[Term]
  15. def argumentExprsOrPrefixExpr(): collection.immutable.List[Term]
  16. def argumentPattern(): Pat
  17. def argumentPatterns(): collection.immutable.List[Pat]
  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def atPos[T <: Tree](start: Pos, end: Pos)(body: => T): T
  20. def auto: AutoPos
  21. def autoPos[T <: Tree](body: => T): T
  22. def batchSource(): Source
  23. def block(): Term
  24. def blockExpr(): Term
  25. def blockStatSeq(): collection.immutable.List[Stat]
  26. def bound[T <: Token](implicit arg0: TokenInfo[T]): Option[Type]
  27. def caseClause(): Case
  28. def caseClauses(): collection.immutable.List[Case]
  29. def checkAssoc(op: Term.Name, leftAssoc: Boolean): Unit
  30. def classDef(mods: collection.immutable.List[Mod]): Class
  31. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  32. final def commaSeparated[T <: Tree](part: => T)(implicit arg0: AstInfo[T]): collection.immutable.List[T]
    Annotations
    @inline()
  33. def condExpr(): Term
  34. def constrBlock(): (Init, collection.immutable.List[Stat])
  35. def constrExpr(): (Init, collection.immutable.List[Stat])
  36. def constructorAnnots(): collection.immutable.List[Annot]
  37. def ctorModifiers(): Option[Mod]
  38. implicit val currentDialect: Dialect
  39. def defOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  40. final def dropAnyBraces[T](body: => T): T
    Annotations
    @inline()
  41. def dropTrivialBlock(term: Term): Term
  42. def ellipsis[T <: Tree](rank: Int, astInfo: AstInfo[T], extraSkip: => Unit = {})(implicit arg0: AstInfo[T]): T
  43. def ensureEarlyDef(tree: Stat): Stat
  44. 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
  45. 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
  46. 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
  47. 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
  48. def entrypointCase(): Case
  49. def entrypointCtor(): Ctor
  50. def entrypointEnumerator(): Enumerator
  51. def entrypointExpr(): Term
  52. def entrypointImportee(): Importee
  53. def entrypointImporter(): Importer
  54. def entrypointInit(): Init
  55. def entrypointModifier(): Mod
  56. def entrypointPattern(): Pat
  57. def entrypointSelf(): Self
  58. def entrypointSource(): Source
  59. def entrypointStat(): Stat
  60. def entrypointTemplate(): Template
  61. def entrypointTermParam(): Param
  62. def entrypointType(): Type
  63. def entrypointTypeParam(): Param
  64. def enumerator(isFirst: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]
  65. def enumerators(): collection.immutable.List[Enumerator]
  66. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  68. def existentialStats(): collection.immutable.List[Stat]
  69. def expr(location: Location, allowRepeated: Boolean): Term
  70. def expr(): Term
  71. def exprSimpleType(): Type
  72. def exprTypeArgs(): collection.immutable.List[Type]
  73. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  74. 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
    @inline()
  75. def funDefOrDclOrSecondaryCtor(mods: collection.immutable.List[Mod]): Stat
  76. def funDefRest(mods: collection.immutable.List[Mod]): Stat
  77. def generator(eqOK: Boolean, allowNestedIf: Boolean = true): collection.immutable.List[Enumerator]
  78. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  79. def guard(): Option[Term]
  80. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  81. def implicitClosure(location: Location): Term.Function
  82. def importStmt(): Import
  83. def importWildcardOrName(): Importee
  84. def importee(): Importee
  85. def importees(): collection.immutable.List[Importee]
  86. def importer(): Importer
  87. var in: TokenIterator
  88. final def inBraces[T](body: => T): T
    Annotations
    @inline()
  89. final def inBracesOrError[T](body: => T, alt: T): T
    Annotations
    @inline()
  90. final def inBracesOrNil[T](body: => collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  91. final def inBracesOrUnit[T](body: => Term): Term
    Annotations
    @inline()
  92. final def inBrackets[T](body: => T): T
    Annotations
    @inline()
  93. final def inParens[T](body: => T): T

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g.

    Methods inParensOrError and similar take a second argument which, should the next token not be the expected opener (e.g. token.LeftParen) will be returned instead of the contents of the groupers. However in all cases accept[LeftParen] will be called, so a parse error will still result. If the grouping is optional, token should be tested before calling these methods.

    Annotations
    @inline()
  94. final def inParensOrError[T](body: => T, alt: T): T
    Annotations
    @inline()
  95. final def inParensOrNil[T](body: => collection.immutable.List[T]): collection.immutable.List[T]
    Annotations
    @inline()
  96. def inParensOrTupleOrUnit(location: Location, allowRepeated: Boolean): Term
  97. final def inParensOrUnit[T, Ret >: Lit](body: => Ret): Ret
    Annotations
    @inline()
  98. def initInsideAnnotation(allowArgss: Boolean): Init
  99. def initInsideConstructor(): Init
  100. def initInsideTemplate(): Init
  101. def initRest(typeParser: () => Type, allowArgss: Boolean, allowBraces: Boolean): Init
  102. implicit def intToIndexPos(index: Int): IndexPos
  103. def interpolate[Ctx <: Tree, Ret <: Tree](arg: () => Ctx, result: (Term.Name, collection.immutable.List[Lit], collection.immutable.List[Ctx]) => Ret): Ret
  104. def interpolatePat(): Interpolate
  105. def interpolateTerm(): Interpolate
  106. def isAmpersand: Boolean
  107. def isBackquoted: Boolean
  108. def isBar: Boolean
  109. def isColonWildcardStar: Boolean
  110. def isIdent: Boolean
  111. def isIdentAnd(pred: (String) => Boolean): Boolean
  112. def isIdentExcept(except: String): Boolean
  113. def isIdentOf(name: String): Boolean
  114. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  115. def isSpliceFollowedBy(check: => Boolean): Boolean
  116. def isStar: Boolean
  117. def isUnaryOp: Boolean
  118. def literal(isNegated: Boolean = false): Lit
  119. def localDef(implicitMod: Option[Implicit]): Stat
  120. def localModifiers(): collection.immutable.List[Mod]
  121. def makeTuple[T <: Tree](body: collection.immutable.List[T], zero: () => T, tuple: (collection.immutable.List[T]) => T): T
  122. def makeTupleTerm(body: collection.immutable.List[Term]): Term
  123. def makeTupleType(body: collection.immutable.List[Type]): Type
  124. def mixinQualifier(): Name
  125. def modifier(): Mod
  126. def modifiers(isLocal: Boolean = false, isTparam: Boolean = false): collection.immutable.List[Mod]
  127. implicit def modsToPos(mods: collection.immutable.List[Mod]): Pos
  128. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  129. def newLineOpt(): Unit
  130. def newLineOptWhenFollowedBy[T <: Token](implicit arg0: TokenInfo[T]): Unit
  131. def newLineOptWhenFollowing(p: (Token) => Boolean): Unit
  132. def newLinesOpt(): Unit
  133. def next(): Token
  134. def nextOnce(): Token
  135. def nextThrice(): Token
  136. def nextTwice(): Token
  137. def nonLocalDefOrDcl(): Stat
  138. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  139. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  140. def objectDef(mods: collection.immutable.List[Mod]): Object
  141. def onlyAcceptMod[M <: Mod, T <: Token](mods: collection.immutable.List[Mod], errorMsg: String)(implicit classifier: Classifier[Mod, M], tag: ClassTag[M], tokenInfo: TokenInfo[T]): Unit
  142. implicit def optionTreeToPos(tree: Option[Tree]): Pos
  143. def packageDef(): Pkg
  144. def packageObjectDef(): Object
  145. def packageOrPackageObjectDef(): Stat
  146. def param(ownerIsCase: Boolean, ownerIsType: Boolean, isImplicit: Boolean): Param
  147. def paramClauses(ownerIsType: Boolean, ownerIsCase: Boolean = false): collection.immutable.List[collection.immutable.List[Param]]
  148. def paramType(): Type
  149. def parseCase(): Case
  150. def parseCtor(): Ctor
  151. def parseEnumerator(): Enumerator
  152. def parseImportee(): Importee
  153. def parseImporter(): Importer
  154. def parseInit(): Init
  155. def parseMod(): Mod
  156. def parsePat(): Pat
  157. def parseRule[T <: Tree](rule: (ScalametaParser.this.type) => T): T
  158. def parseSelf(): Self
  159. def parseSource(): Source
  160. def parseStat(): Stat
  161. def parseTemplate(): Template
  162. def parseTerm(): Term
  163. def parseTermParam(): Param
  164. def parseType(): Type
  165. def parseTypeParam(): Param
  166. def parseUnquotePat(): Pat
  167. def parseUnquoteTerm(): Term
  168. lazy val parserTokenPositions: Array[Int]
  169. lazy val parserTokens: Tokens
  170. def patDefOrDcl(mods: collection.immutable.List[Mod]): Stat
  171. def path(thisOK: Boolean = true): Term.Ref
  172. def pattern(): Pat

    Default entry points into some pattern contexts.

  173. def patternTyp(): Type
  174. def patternTypeArgs(): collection.immutable.List[Type]
  175. def postfixExpr(allowRepeated: Boolean): Term
  176. def prefixExpr(allowRepeated: Boolean): Term
  177. def primaryCtor(owner: TemplateOwner): Primary
  178. def qualId(): Term.Ref
  179. def quasiquoteCase(): Case
  180. def quasiquoteCtor(): Ctor
  181. def quasiquoteEnumerator(): Enumerator
  182. def quasiquoteExpr(): Term
  183. def quasiquoteImportee(): Importee
  184. def quasiquoteImporter(): Importer
  185. def quasiquoteInit(): Init
  186. def quasiquoteModifier(): Mod
  187. def quasiquotePattern(): Pat
  188. def quasiquoteSelf(): Self
  189. def quasiquoteSource(): Source
  190. def quasiquoteStat(): Stat
  191. def quasiquoteTemplate(): Template
  192. def quasiquoteTermParam(): Param
  193. def quasiquoteType(): Type
  194. def quasiquoteTypeParam(): Param
  195. def refineStat(): Option[Stat]
  196. def refineStatSeq(): collection.immutable.List[Stat]
  197. def refinement(): collection.immutable.List[Stat]
  198. def rejectMod[M <: Mod](mods: collection.immutable.List[Mod], errorMsg: String)(implicit classifier: Classifier[Mod, M], tag: ClassTag[M]): Unit
  199. def rejectModCombination[M1 <: Mod, M2 <: Mod](mods: collection.immutable.List[Mod], culprit: String)(implicit invalidMod: InvalidModCombination[M1, M2], classifier1: Classifier[Mod, M1], tag1: ClassTag[M1], classifier2: Classifier[Mod, M2], tag2: ClassTag[M2]): Unit
  200. lazy val reporter: Reporter
  201. lazy val scannerTokens: Tokens
  202. def scriptSource(): Source
  203. def secondaryCtor(mods: collection.immutable.List[Mod]): Secondary
  204. def secondaryCtorRest(mods: collection.immutable.List[Mod], name: Name, paramss: collection.immutable.List[collection.immutable.List[Param]]): Secondary
  205. def selector(t: Term): Select
  206. def selectors(t: Term): Term.Ref
  207. def self(): Self
  208. def seqPatterns(): collection.immutable.List[Pat]
  209. def simpleExpr(allowRepeated: Boolean): Term
  210. def simpleExprRest(t: Term, canApply: Boolean): Term
  211. def source(): Source
  212. def stableId(): Term.Ref
  213. def startInfixType(): Type
  214. def startModType(): Type
  215. def stat(body: => Stat): Stat
  216. def statSeq[T <: Tree](statpf: PartialFunction[Token, T], errorMsg: String = "illegal start of definition")(implicit arg0: AstInfo[T]): collection.immutable.List[T]
  217. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  218. def syntaxErrorExpected[T <: Token](implicit arg0: TokenInfo[T]): Nothing
  219. def template(): Template
  220. def templateBody(isPre: Boolean): (Self, collection.immutable.List[Stat])
  221. def templateBodyOpt(parenMeansSyntaxError: Boolean): (Self, collection.immutable.List[Stat])
  222. def templateOpt(owner: TemplateOwner): Template
  223. def templateParents(): collection.immutable.List[Init]
  224. def templateStat: PartialFunction[Token, Stat]
  225. def templateStatSeq(isPre: Boolean): (Self, collection.immutable.List[Stat])
  226. def templateStats(): collection.immutable.List[Stat]
  227. def termName(advance: Boolean = true): Term.Name
  228. def tmplDef(mods: collection.immutable.List[Mod]): Member with Stat
  229. def toString(): String
    Definition Classes
    AnyRef → Any
  230. def token: Token
  231. final def tokenSeparated[Sep <: Token, T <: Tree](sepFirst: Boolean, part: => T)(implicit arg0: TokenInfo[Sep], arg1: AstInfo[T]): collection.immutable.List[T]
  232. implicit def tokenToTokenPos(token: Token): TokenPos
  233. def topLevelTmplDef: Member with Stat

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

  234. def topStat: PartialFunction[Token, Stat]
  235. def topStatSeq(): collection.immutable.List[Stat]
  236. def tparamModifiers(): Option[Mod]
  237. def traitDef(mods: collection.immutable.List[Mod]): Trait
  238. implicit def treeToTreePos(tree: Tree): TreePos
  239. def typ(): Type

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

  240. def typeBounds(): Bounds
  241. def typeDefOrDcl(mods: collection.immutable.List[Mod]): Member.Type with Stat
  242. def typeName(advance: Boolean = true): Type.Name
  243. def typeOrInfixType(location: Location): Type
  244. def typeParam(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): Param
  245. def typeParamClauseOpt(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): collection.immutable.List[Param]
  246. def typedOpt(): Option[Type]
  247. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T
  248. def unquote[T <: Tree](advance: Boolean = true)(implicit arg0: AstInfo[T]): T
  249. def unquoteExpr(): Term
  250. def unquotePattern(): Pat
  251. def unquoteXmlExpr(): Term
  252. def unquoteXmlPattern(): Pat
  253. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  254. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  255. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  256. def xmlLiteralPattern(): Pat
  257. def xmlPat(): Xml
  258. def xmlSeqPatterns(): collection.immutable.List[Pat]
  259. def xmlTerm(): Xml
  260. object AutoPos extends Pos with Product with Serializable
  261. object CanEndStat
  262. object CantStartStat
  263. object CaseDefEnd
  264. object CaseIntro
  265. object CloseDelim
  266. object DclIntro
  267. object DefIntro
  268. object ExprIntro
  269. implicit object InvalidFinalAbstract extends InvalidModCombination[Final, Abstract]
  270. implicit object InvalidFinalSealed extends InvalidModCombination[Final, Sealed]
  271. implicit object InvalidOverrideAbstract extends InvalidModCombination[Override, Abstract]
  272. implicit object InvalidPrivateProtected extends InvalidModCombination[Private, Protected]
  273. implicit object InvalidProtectedPrivate extends InvalidModCombination[Protected, Private]
  274. object LineEnd
  275. object Literal
  276. object LocalModifier
  277. object Modifier
  278. object NonlocalModifier
  279. object NumericLiteral
  280. object OwnedByCaseClass extends TemplateOwner
  281. object OwnedByClass extends TemplateOwner
  282. object OwnedByObject extends TemplateOwner
  283. object OwnedByTrait extends TemplateOwner
  284. object StatSep
  285. object StatSeqEnd
  286. object TemplateIntro
  287. object Trivia
  288. object TypeIntro
  289. object Whitespace
  290. object noSeq extends SeqContextSensitive

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

  291. object outPattern extends PatternContextSensitive

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

  292. implicit object patInfixContext extends InfixContext
  293. object seqOK extends SeqContextSensitive

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

  294. object termInfixContext extends InfixContext
  295. object xmlSeqOK extends SeqContextSensitive

    For use from xml pattern, where sequence is allowed and encouraged.

Deprecated Value Members

  1. 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