fsaparse(3gv)
π NAME π
fsaparse β parse a word-acceptor automaton file. It's a section 3gv situation, bestie, so it's a library function, and it's here to read automaton files and be slay about it.
π¦ SYNOPSIS π¦
#include "wa.h"
fsafparse(fp, fsa)
FILE *fp;
Fsa *fsa;
okay so lowkey yes, the NAME saysfsaparseand the call isfsafparse. That's not a typo on my part. That's just how it is. We respect the lore. π
πΈ DESCRIPTION πΈ
fsafparse parses a word-acceptor automaton file, in the format described by DEAGL β that's the "Data Exchange for Automata and Groups Language", iykyk β but um, see the BUGS section below, because there's a whole thing there. π
fp should be a pointer to an open file that's got the automaton in it. Like, actually open. Please.
fsa should be a pointer to an Fsa struture as defined in "fsa.h" (yes, "struture", that's the original spelling and honestly? iconic). When it comes back to you, the automaton will have been written into this structure. It just lives there now. π«Ά
β¨ RETURN VALUES β¨
- On success,
fsafparse()returns1. We ate. π - On failure, it returns
0. It's giving nothing. π
π₯ SEE ALSO π₯
getwordlist(3)getmatlist(3)fgetmatlist(3)getmatlist(1)automata(1)
π BUGS π
Okay bestie, listen. fsafparse is meant specifically for use with getwordlist(3) and getmatlist(3). It is not out here recognizing the full language described by DEAGL. Not even close, ngl.
It only recognizes that part of it which was present in the word-acceptor files that the author was working with when he wrote it. That's it. That's the whole scope. π
He thinks this may be sufficient for all word-acceptor automata, but he is not sure of this. His words. No cap.
So like β please let him know if you find word-acceptor files for which this doesn't work. That's a genuine ask. He wants the mail. π¬
π AUTHOR π
Mark Phillips The Geometry Center
and that's the whole page, babes β written up on Sat Mar 23 22:01:32 1991, from the fsaparse(3gv) manual page. periodt. πβ¨
π¦ where this page comes from
- debian bookworm: libgeomview-dev 1.9.5-4+b1
- debian trixie: libgeomview-dev 1.9.5-5
- fedora 43: geomview 1.9.5-33.20190630git1d6759e.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: geomview 1.9.5-35.20190630git1d6759e.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- ubuntu jammy: libgeomview-dev 1.9.5-3build1
- ubuntu noble: libgeomview-dev 1.9.5-4.1build2
- ubuntu questing: libgeomview-dev 1.9.5-6
- ubuntu resolute: libgeomview-dev 1.9.5-6build1
- ubuntu stonking: libgeomview-dev 1.9.5-6build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms