IndentAwareLexer

Class in Yarn.Compiler

Inherits from Antlr4.Runtime.Lexer

Summary

A Lexer subclass that detects newlines and generates indent and dedent tokens accordingly.

public abstract class IndentAwareLexer : Lexer

Constructors

Name
Description

Methods

Name
Description

Returns a value indicating whether the lexer is currently lexing an expression that's part of a 'when' clause.

Sets a value indicating whether the lexer is currently lexing an expression that's part of a 'when' clause.

Properties

Name
Description

Gets the collection of warnings determined during lexing.

Structs

Name
Description

A warning emitted during lexing.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.