TemmlMacroExpansion
Namespace: Temml
public sealed class TemmlMacroExpansionThe token list form of a macro, as \def produces. Maps to upstream’s { tokens, numArgs, delimiters, unexpandable } objects.
Inheritance: object
Constructors
Section titled “Constructors”TemmlMacroExpansion(List<TemmlToken>, int)
Section titled “TemmlMacroExpansion(List<TemmlToken>, int)”public TemmlMacroExpansion(List<TemmlToken> tokens, int numArgs = 0)Initializes a new instance of the TemmlMacroExpansion class.
Parameters
| Name | Type | Description |
|---|---|---|
tokens |
List<TemmlToken> | The body, in reverse order. |
numArgs |
int | The number of arguments. |
Properties
Section titled “Properties”Delimiters
Section titled “Delimiters”public List<List<string>>? Delimiters { get; set; }The parameter text of \def: the delimiters before the first argument and after each one.
Value: List<List<string>>
NumArgs
Section titled “NumArgs”public int NumArgs { get; }The number of arguments.
Value: int
Tokens
Section titled “Tokens”public List<TemmlToken> Tokens { get; }The body of the macro, in reverse order.
Value: List<TemmlToken>
Unexpandable
Section titled “Unexpandable”public bool Unexpandable { get; set; }Set by \let for a command that is not expandable.
Value: bool
MIT · Copyright 2020 Ron Kok · unofficial community port of Temml