Skip to content

LLamaGrammarElement

Namespace: LLama.Native

An element of a grammar

1
public struct LLamaGrammarElement

Inheritance ObjectValueTypeLLamaGrammarElement
Implements IEquatable<LLamaGrammarElement>

Fields

Type

The type of this element

1
public LLamaGrammarElementType Type;

Value

Unicode code point or rule ID

1
public uint Value;

Constructors

LLamaGrammarElement(LLamaGrammarElementType, UInt32)

Construct a new LLamaGrammarElement

1
LLamaGrammarElement(LLamaGrammarElementType type, uint value)

Parameters

type LLamaGrammarElementType

value UInt32

Methods

IsCharElement()

1
bool IsCharElement()

Returns

Boolean

ToString()

1
string ToString()

Returns

String

GetHashCode()

1
int GetHashCode()

Returns

Int32

Equals(Object)

1
bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(LLamaGrammarElement)

1
bool Equals(LLamaGrammarElement other)

Parameters

other LLamaGrammarElement

Returns

Boolean