All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

IndentAwareLexer(ICharStream,TextWriter,TextWriter)

Constructor in IndentAwareLexer

Summary

Initializes a new instance of the IndentAwareLexer class.

public IndentAwareLexer(ICharStream input, TextWriter output, TextWriter errorOutput)

Parameters

Name
Description

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.

Message

Field in Warning

Summary

The message associated with the warning.

public string Message;

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
Name
Description
Name
Description
Name
Description

NextToken()

Method in

Token

Field in

The token associated with the warning.

public override IToken NextToken()

Summary

IndentAwareLexer
public IToken Token;

Summary

Warning

Initializes a new instance of the class.

Gets the collection of warnings determined during lexing.

A warning emitted during lexing.

Methods

Properties

Structs

IndentAwareLexer(ICharStream,TextWriter,TextWriter)
IndentAwareLexer
NextToken()
Warnings
Warning

Warnings

Property in

Gets the collection of warnings determined during lexing.

public IEnumerable<Warning> Warnings { get; }

Summary

IndentAwareLexer

Warning

Struct in IndentAwareLexer

Inherits from System.ValueType

Summary

A warning emitted during lexing.

public struct Warning

Fields

Name
Description

The message associated with the warning.

The token associated with the warning.

Message
Token