Parallel
grouse.txt
Associated article: High-Speed Finite-State Machines
Tags: Parallel
Published source code accompanying the article by Brenton Hoff in which he presents a technique for implementing a virtual machine, using text-processing as an example application. Also see GROUSE.ZIP.
High-Speed Finite-State Machines
by Brenton Hoff
Example 1:
(a)
0x00 ABANDON
0x01 AGAIN
0x02 AGAIN
...
'w' AGAIN
'x' MATCH
'y' AGAIN
...
(b)
for (;;) {
NextCh = *pText++;
Action = pState[NextCh];
switch (Action) {
case AGAIN: continue;
case MATCH: return TRUE;
case ABANDON: return FALSE;
}
}
(...


