5 /* Copyright (C) 1995, 1996 Tom Lord
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Library General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public License
18 * along with this software; see the file COPYING. If not, write to
19 * the Free Software Foundation, 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
29 #include "inst-rxposix.h"
33 #define RX_MANY_CASES 30
36 typedef enum rx_answers (*rx_vmfn
)
38 unsigned const char ** burst
, int * len
, int * offset
,
39 int start
, int end
, int need
));
41 typedef enum rx_answers (*rx_contextfn
)
43 struct rexp_node
* node
,
45 struct rx_registers
* regs
));
53 struct rexp_node
* exp
;
54 struct rexp_node
** subexps
;
55 struct rx_registers
* regs
;
61 rx_contextfn contextfn
;
64 struct rx_unfaniverse
* verse
;
66 struct rx_classical_system match_engine
;
67 struct rx_unfa
* left_dfa
;
68 struct rx_classical_system left_match_engine
;
71 struct rx_solutions
* left
;
72 struct rx_solutions
* right
;
82 extern struct rx_solutions rx_no_solutions
;
86 extern struct rx_solutions
* rx_make_solutions (struct rx_registers
* regs
, struct rx_unfaniverse
* verse
, struct rexp_node
* expression
, struct rexp_node
** subexps
, int cset_size
, int start
, int end
, rx_vmfn vmfn
, rx_contextfn contextfn
, void * closure
);
87 extern void rx_free_solutions (struct rx_solutions
* solns
);
88 extern int rx_best_end_guess (struct rx_solutions
* solns
, struct rexp_node
* exp
, int bound
);
89 extern enum rx_answers
rx_next_solution (struct rx_solutions
* solns
);
92 extern struct rx_solutions
* rx_make_solutions ();
93 extern void rx_free_solutions ();
94 extern int rx_best_end_guess ();
95 extern enum rx_answers
rx_next_solution ();
99 #endif /* RXSPENCERH */