You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.native.llamagrammarelementtype.md 1.2 kB

123456789101112131415161718192021222324
  1. # LLamaGrammarElementType
  2. Namespace: LLama.Native
  3. grammar element type
  4. ```csharp
  5. public enum LLamaGrammarElementType
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [Enum](https://docs.microsoft.com/en-us/dotnet/api/system.enum) → [LLamaGrammarElementType](./llama.native.llamagrammarelementtype.md)<br>
  8. Implements [IComparable](https://docs.microsoft.com/en-us/dotnet/api/system.icomparable), [IFormattable](https://docs.microsoft.com/en-us/dotnet/api/system.iformattable), [IConvertible](https://docs.microsoft.com/en-us/dotnet/api/system.iconvertible)
  9. ## Fields
  10. | Name | Value | Description |
  11. | --- | --: | --- |
  12. | END | 0 | end of rule definition |
  13. | ALT | 1 | start of alternate definition for rule |
  14. | RULE_REF | 2 | non-terminal element: reference to rule |
  15. | CHAR | 3 | terminal element: character (code point) |
  16. | CHAR_NOT | 4 | inverse char(s) ([^a], [^a-b] [^abc]) |
  17. | CHAR_RNG_UPPER | 5 | modifies a preceding CHAR or CHAR_ALT to be an inclusive range ([a-z]) |
  18. | CHAR_ALT | 6 | modifies a preceding CHAR or CHAR_RNG_UPPER to add an alternate char to match ([ab], [a-zA]) |