Constructor in FileParseResult
Initializes a new instance of the FileParseResult struct.
public FileParseResult(string name, IParseTree tree, CommonTokenStream tokens)string name
The name of the file.
Antlr4.Runtime.Tree.IParseTree tree
The parse tree extracted from the file.
Antlr4.Runtime.CommonTokenStream tokens
The tokens extracted from the file.
Method in
public override bool Equals(object obj)object obj
Property in
The name of the file.
public string Name { get; }Method in
public override int GetHashCode()Property in
The tokens extracted from the file.
public CommonTokenStream Tokens { get; }Property in
The parse tree extracted from the file.
public IParseTree Tree { get; }Struct in Yarn.Compiler
Inherits from System.ValueType
Contains the result of parsing a single file of source code.
public struct FileParseResultThis 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.
Initializes a new instance of the struct.
The name of the file.
The tokens extracted from the file.
The parse tree extracted from the file.