Skip to content

TemmlMacroExpansion

Namespace: Temml

public sealed class TemmlMacroExpansion

The token list form of a macro, as \def produces. Maps to upstream’s { tokens, numArgs, delimiters, unexpandable } objects.

Inheritance: object

View source

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.

View source

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>>

View source

public int NumArgs { get; }

The number of arguments.

Value: int

View source

public List<TemmlToken> Tokens { get; }

The body of the macro, in reverse order.

Value: List<TemmlToken>

View source

public bool Unexpandable { get; set; }

Set by \let for a command that is not expandable.

Value: bool

View source

MIT · Copyright 2020 Ron Kok · unofficial community port of Temml