WIP NFA & DFA validation
This commit is contained in:
parent
bb70c3df19
commit
a6ff817156
4 changed files with 30 additions and 2 deletions
16
NFA.fs
Normal file
16
NFA.fs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue