Mescal
Loading...
Searching...
No Matches
nfa Struct Reference

Type used to represent a NFA. More...

#include <nfa.h>

Public Attributes

lgraphtrans
 Graph of transitions (also stores the number of states and the size of the alphabet).
 
dequeueinitials
 The list of initial states (sorted in increasing order).
 
dequeuefinals
 The list of final states (sorted in increasing order).
 
letteralphabet
 Array indexed by the indices of letters. Maps each index to its actual letter (NULL if the alphabet is empty).
 
graphtrans_e
 Graph of espilon transitions (NULL if there are no such transitions).
 
lgraphtrans_i
 Graph of inverse transitions (NULL if there are no such transitions).
 
char ** state_names
 Array of state names (only utilized when displaying the NFA). Each state is mapped to its name (NULL if unused).
 

Detailed Description

Type used to represent a NFA.

The last four fields are not mandatory (if not used, they must be set to a NULL pointer). The letters in the alphabet are sorted in increasing order.

Remarks
The array of state names is not mandatory. If it is set to a NULL pointer, each set will be named by its index when displaying the NFA.

The documentation for this struct was generated from the following file: