How to Design an acceptor for integers in a programming language C

859 Views Asked by At

I was reading a book named "An introduction to Formal Languages and Automata" by Peter Linz. In one of it's questions, it asked me to, "Design an acceptor for integers in a programming language C" Can some one please tell me how can I obtain an answer for this. Any help would be greatly appreciated

1

There are 1 best solutions below

1
On

Since your book is about automata, I'm guessing that they want you to write a finite state machine. You can do a search for how to write an FSM in C; here is one example.