- A Decision Table Code GeneratorThe Ccide Project is pleased to present Ccide, an open-source, C language, decision table code generator.
Click here to run an on-line demo.
One such case is the state machine case.
//DECISION_TABLE:
// 0 1 2 3 4 |group[state][event] == $$
//-----------------------------------------
// x x x x x |if(DEBUGGING) printf("%i,%i", state,event);
// 0 1 2 3 4 |PerformActionFor$$();
// x x x x - |event = GetEvent();
// x x x x - |state = nextstate[state][event];
// x x x x - |NEWGROUP
//END_TABLE:
in which there is a single condition statement with all-integer
condition entries. In the example, Ccide will use
switch(Bigstate[state][event]) ... logic, rather than a ...FindRule..
function. 4 is the final state in this example.