Farkle


PrecompiledGrammar Type

An object that represents a precompiled grammar inside an assembly.

Instance members

Instance member Description

this.Assembly

Full Usage: this.Assembly

Returns: Assembly

The `Assembly` that contains this precompiled grammar.

Returns: Assembly

this.GetGrammar

Full Usage: this.GetGrammar

Returns: Grammar

Gets the actual `Grammar` of this object.

Returns: Grammar

this.GrammarName

Full Usage: this.GrammarName

Returns: string

The precompiled grammar's name.

Returns: string

Static members

Static member Description

PrecompiledGrammar.GetAllFromAssembly(asm)

Full Usage: PrecompiledGrammar.GetAllFromAssembly(asm)

Parameters:
Returns: IReadOnlyDictionary<string, PrecompiledGrammar>

Gets all precompiled grammars of an assembly. This function is safe to call from multiple threads and efficient to call many times with the same assembly. The cache it internally uses does not prevent the assembly from being unloaded.

asm : Assembly
Returns: IReadOnlyDictionary<string, PrecompiledGrammar>