Constructor in IndentAwareLexer
Initializes a new instance of the IndentAwareLexer class.
public IndentAwareLexer(ICharStream input, TextWriter output, TextWriter errorOutput)Antlr4.Runtime.ICharStream input
The incoming character stream.
System.IO.TextWriter output
The System.IO.TextWriter to send output to.
System.IO.TextWriter errorOutput
The System.IO.TextWriter to send errors to.
Class in Yarn.Compiler
Inherits from Antlr4.Runtime.Lexer
A Lexer subclass that detects newlines and generates indent and dedent tokens accordingly.
public abstract class IndentAwareLexer : LexerMethod in
Field in
The token associated with the warning.
public override IToken NextToken()public IToken Token;Initializes a new instance of the class.
Gets the collection of warnings determined during lexing.
A warning emitted during lexing.
Property in
Gets the collection of warnings determined during lexing.
public IEnumerable<Warning> Warnings { get; }Struct in IndentAwareLexer
Inherits from System.ValueType
A warning emitted during lexing.
public struct WarningThe message associated with the warning.
The token associated with the warning.