views:

124

answers:

1

I want to develop a tool to construct the transition graph of any finite automata given its transition table, start state and final state using Lex and Yacc. Tool should also provide a facility to check whether a string is accepted by the automata or not.

Can anyone tell me how to do it.

+1  A: 

This might be a helpful introduction. Implementation of a DFA in lex, with source code and quite detailed illustrations.

Kornel Kisielewicz