FORM v5.0.0-35-g6318119
Functions
findpat.c File Reference
#include "form3.h"
Include dependency graph for findpat.c:

Go to the source code of this file.

Functions

int FindOnly (PHEAD WORD *term, WORD *pattern)
 
int FindOnce (PHEAD WORD *term, WORD *pattern)
 
WORD FindMulti (PHEAD WORD *term, WORD *pattern)
 
int 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 among 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.

Function Documentation

◆ FindOnly()

int FindOnly ( PHEAD WORD *  term,
WORD *  pattern 
)

Definition at line 61 of file findpat.c.

◆ FindOnce()

int FindOnce ( PHEAD WORD *  term,
WORD *  pattern 
)

Definition at line 419 of file findpat.c.

◆ FindMulti()

WORD FindMulti ( PHEAD WORD *  term,
WORD *  pattern 
)

Definition at line 954 of file findpat.c.

◆ FindRest()

int FindRest ( PHEAD WORD *  term,
WORD *  pattern 
)

Definition at line 1070 of file findpat.c.