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

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

    Default entry points into some pattern contexts.

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

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

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

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

  239. def typeBounds(): Bounds
  240. def typeDefOrDcl(mods: collection.immutable.List[Mod]): Member.Type with Stat
  241. def typeName(advance: Boolean = true): Type.Name
  242. def typeOrInfixType(location: Location): Type
  243. def typeParam(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): Param
  244. def typeParamClauseOpt(ownerIsType: Boolean, ctxBoundsAllowed: Boolean): collection.immutable.List[Param]
  245. def typedOpt(): Option[Type]
  246. def unquote[T <: Tree](implicit arg0: AstInfo[T]): T
  247. def unquote[T <: Tree](advance: Boolean = true)(implicit arg0: AstInfo[T]): T
  248. def unquoteExpr(): Term
  249. def unquotePattern(): Pat
  250. def unquoteXmlExpr(): Term
  251. def unquoteXmlPattern(): Pat
  252. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  253. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  254. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  255. def xmlLiteralPattern(): Pat
  256. def xmlPat(): Xml
  257. def xmlSeqPatterns(): collection.immutable.List[Pat]
  258. def xmlTerm(): Xml
  259. def [B](y: B): (ScalametaParser, B)
    Implicit
    This member is added by an implicit conversion from ScalametaParser to ArrowAssoc[ScalametaParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
  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.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ScalametaParser to any2stringadd[ScalametaParser]

Inherited by implicit conversion StringFormat from ScalametaParser to StringFormat[ScalametaParser]

Inherited by implicit conversion Ensuring from ScalametaParser to Ensuring[ScalametaParser]

Inherited by implicit conversion ArrowAssoc from ScalametaParser to ArrowAssoc[ScalametaParser]

Ungrouped