FileParseResult

Struct in Yarn.Compiler

Inherits from System.ValueType

Summary

Contains the result of parsing a single file of source code.

public struct FileParseResult : ISourceInput

Remarks

This class provides only syntactic information about a parse - that is, it provides access to the parse tree, and the stream of tokens used to produce that parse tree.

Constructors

NameDescription
FileParseResult(string,IParseTree,CommonTokenStream,IEnumerable)Initializes a new instance of the FileParseResult struct.

Methods

Properties

NameDescription
DiagnosticsThe tokens extracted from the file.
FileNameThe name of the input.
NameThe name of the file.
TokensThe tokens extracted from the file.
TreeThe parse tree extracted from the file.