ceptr
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
process_spec.h File Reference
#include "../src/ceptr.h"
#include "../src/process.h"
Include dependency graph for process_spec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void testRunTree ()
 
void testProcessGet ()
 
void testProcessDel ()
 
void testProcessNew ()
 
void testProcessDefine ()
 
void testProcessDo ()
 
void testProcessTranscode ()
 
void testProcessDissolve ()
 
void testProcessSemtrex ()
 
void testProcessFill ()
 
void testProcessFillMatch ()
 
void testProcessFillMatchFull ()
 
void testProcessIf ()
 
void testProcessCond ()
 
void testProcessSym ()
 
void testProcessIntMath ()
 
void testProcessPath ()
 
void testProcessString ()
 
void testProcessRespond ()
 
void testProcessSay ()
 
void testProcessRequest ()
 
T_testProcessAddSay (T *parent, int id, T *message)
 
void testProcessConverse ()
 
void testProcessConverseListen ()
 
void testProcessThisScope ()
 
void testProcessQuote ()
 
void testProcessStream ()
 
void testProcessStreamClose ()
 
void testProcessInitiate ()
 
void testProcessReduce ()
 
void testProcessParameter ()
 
void testProcessRefs ()
 
void _defIfEven ()
 [defIfEven] More...
 
Process _defDivZero ()
 [defIfEven] More...
 
void testProcessReduceDefinedProcess ()
 [defDivZero] More...
 
void testProcessSignatureMatching ()
 
void testProcessError ()
 
void testProcessRaise ()
 
void testProcessIterate ()
 
void testProcessIterateOnSymbol ()
 
void testProcessListen ()
 
void testProcessSelfAddr ()
 
void testProcessGetLabel ()
 
void testProcessErrorTrickleUp ()
 
void testProcessMulti ()
 
void testRunTreeTemplate ()
 
void testProcessContinue ()
 
void testProcessWakeup ()
 
void testProcess ()
 

Variables

int G_next_process_id
 
Process G_ifeven
 

Detailed Description

Definition in file process_spec.h.

Function Documentation

Process _defDivZero ( )

[defIfEven]

helper to generate an example process definition that creates a divide by zero error

Definition at line 1385 of file process_spec.h.

void _defIfEven ( )

[defIfEven]

helper to generate an example process definition that acts as an if for even numbers

void _defIfEven() {
T *code = _t_parse(G_sem,0,"(IF (EQ_INT (MOD_INT (PARAM_REF:/2/1) (TEST_INT_SYMBOL:2)) (TEST_INT_SYMBOL:0)) (PARAM_REF:/2/2) (PARAM_REF:/2/3))");
T *signature = __p_make_signature("result",SIGNATURE_PASSTHRU,NULL_STRUCTURE,
"val",SIGNATURE_STRUCTURE,INTEGER,
"true_branch",SIGNATURE_ANY,NULL_STRUCTURE,
"false_branch",SIGNATURE_ANY,NULL_STRUCTURE,
NULL);
G_ifeven = _d_define_process(G_sem,code,"if even","return 2nd child if even, third if not",signature,NULL,TEST_CONTEXT);
}

Definition at line 1366 of file process_spec.h.

void testProcessErrorTrickleUp ( )

[testProcessErrorTrickleUp]

[testProcessErrorTrickleUp]

Definition at line 1709 of file process_spec.h.

void testProcessIf ( )
Todo:
when interpolating from a match, how do we handle non-leaf interpollations, i.e. where do you hook children onto?

Definition at line 398 of file process_spec.h.

void testProcessIntMath ( )
Todo:
structure type checking for integer math? Too expensive?

Definition at line 448 of file process_spec.h.

void testProcessMulti ( )

[testProcessMulti]

[testProcessMulti]

Definition at line 1735 of file process_spec.h.

void testProcessReduceDefinedProcess ( )

[defDivZero]

[testProcessReduceDefinedProcess]

[testProcessReduceDefinedProcess]

Definition at line 1403 of file process_spec.h.