diff options
Diffstat (limited to 'edit-lens/src/Control/FST.lhs')
-rw-r--r-- | edit-lens/src/Control/FST.lhs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/edit-lens/src/Control/FST.lhs b/edit-lens/src/Control/FST.lhs new file mode 100644 index 0000000..d3c8ca9 --- /dev/null +++ b/edit-lens/src/Control/FST.lhs | |||
@@ -0,0 +1,24 @@ | |||
1 | \begin{code} | ||
2 | |||
3 | {-| | ||
4 | Description: Finite state transducers with epsilon-transitions | ||
5 | -} | ||
6 | module Control.FST | ||
7 | ( FST(..) | ||
8 | ) where | ||
9 | |||
10 | import Data.Map.Strict (Map) | ||
11 | import qualified Data.Map.Strict as Map | ||
12 | |||
13 | import Data.Set (Set) | ||
14 | |||
15 | import Data.Sequence (Seq) | ||
16 | |||
17 | import Control.Lens.TH | ||
18 | |||
19 | data FST state input output = FST | ||
20 | { stInitial :: state | ||
21 | , stTransition :: Map (state, Maybe input) (Set (state, Maybe output)) | ||
22 | , stAccept :: Set state | ||
23 | } | ||
24 | \end{code} | ||