-
Tests the the
Terminal
is available at the current scanner head position, throwing anError
if notDeclaration
Swift
func test(lexer: LexicalAnalyzer, producing token: TokenType?) throws
Parameters
lexer
The lexer being used for scanning
token
The token produced if any.
-
Provides a textual description of the match
Declaration
Swift
var matchDescription: String { get }
-
rule(with:annotations:)
Extension methodDeclaration
Swift
public func rule(with behaviour: Behaviour?, annotations: RuleAnnotations?) -> Rule
-
test(with:for:)
Extension methodDeclaration
Swift
public func test(with lexer: LexicalAnalyzer, for ir: IntermediateRepresentation) throws
-
shortDescription
Extension methodDeclaration
Swift
public var shortDescription: String { get }
-
behaviour
Extension methodDeclaration
Swift
public var behaviour: Behaviour { get }
-
annotations
Extension methodDeclaration
Swift
public var annotations: RuleAnnotations { get }