Table of Contents

Method AddRewriteRule

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

AddRewriteRule(TSymbol, IEnumerable<TSymbol>)

Adds a new rewrite rule to the system.

public void AddRewriteRule(TSymbol symbol, IEnumerable<TSymbol> replacement)

Parameters

symbol TSymbol

The symbol to match. If a rule for this symbol already exists, it is replaced.

replacement IEnumerable<TSymbol>

The sequence of symbols that replaces symbol during rewriting.