All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

FileParseResult(string,IParseTree,CommonTokenStream)

Constructor in FileParseResult

Summary

Initializes a new instance of the FileParseResult struct.

public FileParseResult(string name, IParseTree tree, CommonTokenStream tokens)

Parameters

Name
Description

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.

Equals(object)

Method in

Name
Description
public override bool Equals(object obj)

object obj

Summary

Parameters

FileParseResult

Name

Property in

The name of the file.

public string Name { get; }

Summary

FileParseResult

GetHashCode()

Method in

public override int GetHashCode()

Summary

FileParseResult

Tokens

Property in

The tokens extracted from the file.

public CommonTokenStream Tokens { get; }

Summary

FileParseResult

Tree

Property in

The parse tree extracted from the file.

public IParseTree Tree { get; }

Summary

FileParseResult

FileParseResult

Struct in Yarn.Compiler

Inherits from System.ValueType

Summary

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

public struct FileParseResult

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

Name
Description
Name
Description
Name
Description

Initializes a new instance of the struct.

The name of the file.

The tokens extracted from the file.

Methods

Properties

The parse tree extracted from the file.

FileParseResult(string,IParseTree,CommonTokenStream)
FileParseResult
Equals(object)
GetHashCode()
Name
Tokens
Tree