WIP NFA & DFA validation

This commit is contained in:
joachimschmidt557 2019-02-06 21:46:02 +01:00
parent bb70c3df19
commit a6ff817156
4 changed files with 30 additions and 2 deletions

16
NFA.fs Normal file
View file

@ -0,0 +1,16 @@
module NFA
open System
type State = { name: String }
type NFA = {
sigma: Char list
states: State list
delta: State -> Char -> State list
beginState: State
acceptingStates: State list
}
let processChar (nfa: NFA) (state: State) (char: Char) =
nfa.delta state char