toosoon-lsystem
Version:
Library providing functionalities for creating and manipulating Lindenmayer systems (L-Systems) using various parameters
17 lines (16 loc) • 498 B
TypeScript
import type { Alphabet, Axiom, ContextParameter, Defines } from './types';
/**
* Check if a symbol matches a context
*
* @param {object}
* @returns {boolean}
*/
export declare function matchContext<A extends Alphabet, I extends Alphabet>({ axiom, index, match, direction, alphabet, ignoredSymbols, defines }: {
axiom: Axiom<A>;
index: number;
match: ContextParameter<A>;
direction: 'before' | 'after';
alphabet: A;
ignoredSymbols: I;
defines: Defines;
}): boolean;