Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1018 B

  1. // dfa.h
  2. // Angshuman Guha
  3. // aguha
  4. // Jan 17, 2001
  5. #ifndef __INC_DFA_H_
  6. #define __INC_DFA_H_
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef struct {
  11. short iState;
  12. short jState;
  13. short iAlphabet;
  14. } Transition;
  15. short MakeDFA(PARSETREE *tree, // in
  16. int cPosition, // in
  17. IntSet *aFollowpos, // in
  18. WCHAR *aPos2Wchar, // in
  19. int cAlphabet, // in
  20. WCHAR *aAlphabet, // in
  21. int *pcTransition, // out
  22. Transition **paTransition, // out
  23. unsigned char **ppbFinal); // out
  24. BOOL MinimizeDFA(short *pcState,
  25. unsigned char **ppbFinal,
  26. int *pcTransition,
  27. Transition **ppTransition);
  28. BOOL MakeCanonicalDFA(short cState,
  29. unsigned char *abFinal,
  30. int cTransition,
  31. Transition *aTransition);
  32. void *ConvertDFAtoBlob(int cTransition,
  33. Transition *aTransition,
  34. int cAlphabet,
  35. WCHAR *aAlphabet,
  36. int cState,
  37. unsigned char *abFinal);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif