Kind
public enum Kind : Equatable
Captures scanning/parsing behaviour indicating identifying if the rule should create tokens (structural), is scanning (should be included in the match range, but creates no token) or skipping (must be matched, but is not included in the bounds of the match range).
-
Do not include any matches in the bounds of the match
Declaration
Swift
case skipping
-
Do not create structure but do include in the bounds of the match
Declaration
Swift
case scanning
-
Include in the bounds of the match and create a structural node in the AST
Declaration
Swift
case structural(token: TokenType)
-
Compares two kinds
Declaration
Swift
public static func == (lhs: Kind, rhs: Kind) -> Bool