summaryrefslogtreecommitdiff
path: root/edit-lens/src/Control/FST.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'edit-lens/src/Control/FST.lhs')
-rw-r--r--edit-lens/src/Control/FST.lhs24
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{-|
4Description: Finite state transducers with epsilon-transitions
5-}
6module Control.FST
7 ( FST(..)
8 ) where
9
10import Data.Map.Strict (Map)
11import qualified Data.Map.Strict as Map
12
13import Data.Set (Set)
14
15import Data.Sequence (Seq)
16
17import Control.Lens.TH
18
19data 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}