home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Include / other / pgen_c.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  3KB  |  44 lines

  1. #ifndef PGEN_C_H
  2. #define PGEN_C_H
  3.  
  4. #include "proto_defs.h"
  5. /* previously forward declarations stripped from object.c */
  6.  
  7. static void compile_rhs Py_PROTO((labellist *ll,
  8.                    nfa *nf, node *n, int *pa, int *pb)) SEG_PGEN_C;
  9. static void compile_alt Py_PROTO((labellist *ll,
  10.                    nfa *nf, node *n, int *pa, int *pb)) SEG_PGEN_C;
  11. static void compile_item Py_PROTO((labellist *ll,
  12.                 nfa *nf, node *n, int *pa, int *pb)) SEG_PGEN_C;
  13. static void compile_atom Py_PROTO((labellist *ll,
  14.                 nfa *nf, node *n, int *pa, int *pb)) SEG_PGEN_C;
  15. static int addnfastate Py_PROTO((nfa *nf)) SEG_PGEN_C;
  16. static void addnfaarc Py_PROTO((nfa *nf, int, int, int)) SEG_PGEN_C;
  17. static nfa * newnfa Py_PROTO((char *name)) SEG_PGEN_C;
  18. static void compile_rule Py_PROTO((nfagrammar *gr, node *n)) SEG_PGEN_C;
  19.  
  20. static nfagrammar *newnfagrammar Py_PROTO(()) SEG_PGEN_C;
  21. static nfa *addnfa Py_PROTO((nfagrammar *gr, char *name)) SEG_PGEN_C;
  22. static nfagrammar *metacompile Py_PROTO((node *n)) SEG_PGEN_C;
  23. static void compile_rule Py_PROTO((nfagrammar *gr, node *n)) SEG_PGEN_C;
  24. static void compile_rhs Py_PROTO((labellist *ll,nfa *nf,node *n, int *pa, int *pb)) SEG_PGEN_C;
  25. static void compile_alt Py_PROTO((labellist *ll, nfa *nf,node *n,int *pa, int *pb)) SEG_PGEN_C;
  26. static void compile_item Py_PROTO((labellist *ll, nfa *nf,node *n, int *pa, int *pb)) SEG_PGEN_C;
  27. static void compile_atom Py_PROTO((labellist *ll, nfa *nf,node *n, int *pa, int *pb)) SEG_PGEN_C;
  28. static void dumpstate Py_PROTO((labellist *ll, nfa *nf, int istate)) SEG_PGEN_C;
  29. static void dumpnfa Py_PROTO((labellist *ll, nfa *nf)) SEG_PGEN_C;
  30. static void addclosure Py_PROTO((bitset ss, nfa *nf, int istate)) SEG_PGEN_C;
  31. static void printssdfa Py_PROTO((int xx_nstates, ss_state *xx_state, int nbits,
  32.                   labellist *ll, char *msg)) SEG_PGEN_C;
  33. static void simplify Py_PROTO((int xx_nstates, ss_state *xx_state)) SEG_PGEN_C;
  34. static void convert Py_PROTO((dfa *d, int xx_nstates, ss_state *xx_state)) SEG_PGEN_C;
  35. static void makedfa Py_PROTO((nfagrammar *gr,nfa *nf,dfa *d)) SEG_PGEN_C;
  36. static void printssdfa Py_PROTO((int xx_nstates, ss_state *xx_state,int nbits,labellist *ll,char *msg)) SEG_PGEN_C;
  37. static int samestate Py_PROTO((ss_state *s1, ss_state *s2)) SEG_PGEN_C;
  38. static void simplify Py_PROTO((int xx_nstates, ss_state *xx_state)) SEG_PGEN_C;
  39. static void renamestates Py_PROTO((int xx_nstates,ss_state *xx_state,int from, int to)) SEG_PGEN_C;
  40. static void convert Py_PROTO((dfa *d, int xx_nstates,ss_state *xx_state)) SEG_PGEN_C;
  41. static grammar *maketables Py_PROTO((nfagrammar *gr)) SEG_PGEN_C;
  42.  
  43. #endif /* PGEN_C_H */
  44.