Next: , Previous: , Up: Procedural Language Interpreter Functions   [Index]


6.14.3.4 x1f4_gawp_shuffle

extern int x1f4_gawp_shuffle
    (const char *program, unsigned flags, const void *context,
     int (*get)(const char *, unsigned, const void *,
		const struct x1f4_function_type **));

The x1f4_gawp_shuffle function determines if the program textual program is likely a procedural one rather than an imperative one. Flags may list X1f4_A1_SCOMMENT, indicating that shell style comments (‘#’ led) should be allowed. get is a function look up method and context its look up context. When not NULL, get is used to assess the found names, with recognized function names making the case for non procedural programs.

The function may fail to correctly identity the program type. Likely conditions include programs starting with function declarations with missing function (evaluation) type.

The function returns 1 for procedural program likelyhood, 0 otherwise.