trait ParsersCommon extends ScannersCommon
Historical note: JavaParsers started life as a direct copy of Parsers but at a time when that Parsers had been replaced by a different one. Later it was dropped and the original Parsers reinstated, leaving us with massive duplication between Parsers and JavaParsers.
This trait and the similar one for Scanners/JavaScanners represents the beginnings of a campaign against this latest incursion by Cutty McPastington and his army of very similar soldiers.
- Self Type
- ParsersCommon
- Source
- Parsers.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- ParsersCommon
- ScannersCommon
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
Offset = Int
Offset into source character array
Offset into source character array
- Definition Classes
- ScannersCommon
-
abstract
class
ParserCommon
extends AnyRef
This is now an abstract class, only to work around the optimizer: methods in traits are never inlined.
-
type
Token = Int
- Definition Classes
- ScannersCommon
-
trait
CommonTokenData
extends AnyRef
- Definition Classes
- ScannersCommon
-
trait
DocScanner
extends AnyRef
- Definition Classes
- ScannersCommon
-
trait
ScannerCommon
extends CommonTokenData
- Definition Classes
- ScannersCommon
Abstract Value Members
-
abstract
val
global: Global
- Definition Classes
- ParsersCommon → ScannersCommon
Concrete Value Members
-
def
createKeywordArray(keywords: Seq[(Global.Name, Token)], defaultToken: Token): (Token, Array[Token])
- Definition Classes
- ScannersCommon
- def literalUnit: Global.Literal
- def newLiteral(const: Any): Global.Literal
The Scala compiler and reflection APIs.