1fsaparse(3gv) fsaparse(3gv)
2
3
4
6 fsaparse - parse a word-acceptor automaton file
7
9 #include "wa.h"
10
11 fsafparse(fp, fsa)
12 FILE *fp;
13 Fsa *fsa;
14
15
17 fsafparse parses a word-acceptor automaton file in the format described
18 by DEAGL ("Data Exchange for Automata and Groups Language") (but see
19 the BUGS section below). fp should be a pointer to an open file con‐
20 taining the automaton. fsa should be a pointer to an Fsa struture as
21 defined in "fsa.h". Upon return, the automaton will have been written
22 into this structure.
23
24
26 On success, fsafparse() returns 1. On failure, it returns 0.
27
28
30 getwordlist(3), getmatlist(3), fgetmatlist(3),
31 getmatlist(1), automata(1)
32
33
35 fsafparse is meant specifically for use with getwordlist(3) and get‐
36 matlist(3). It does not recognize the full language described by
37 DEAGL. It only recognizes that part of it which was present in the
38 word-acceptor files that I was working with when I wrote it. I think
39 this may be sufficient for all word-acceptor automata, but I am not
40 sure of this. Please let me know if you find word-acceptor files for
41 which this doesn't work.
42
43
45 Mark Phillips
46 The Geometry Center
47
48
49
50 Sat Mar 23 22:01:32 1991 fsaparse(3gv)