FORM  4.2.1
Functions
findpat.c File Reference
#include "form3.h"

Go to the source code of this file.

Functions

WORD FindOnly (PHEAD WORD *term, WORD *pattern)
 
WORD FindOnce (PHEAD WORD *term, WORD *pattern)
 
WORD FindMulti (PHEAD WORD *term, WORD *pattern)
 
WORD FindRest (PHEAD WORD *term, WORD *pattern)
 

Detailed Description

Pattern matching of symbols and dotproducts. There are various routines because of the options in the id-statements like once, only, multi and many. These are amoung the oldest routines in FORM and that can be noticed, because the interplay with the function matching is not complete. When we match functions and halfway we fail we can backtrack properly. With the symbols, the dotproducts and the vectors (in pattern.c) there is no proper backtracking. Hence the routines here need still quite some work or may even have to be rewritten.

Definition in file findpat.c.