progs/dfa.scala
changeset 483 6f508bcdaa30
parent 481 acd8780bfc8b
child 485 bd6d999ab7b6
--- a/progs/dfa.scala	Mon Apr 03 01:10:54 2017 +0800
+++ b/progs/dfa.scala	Tue Apr 11 06:22:46 2017 +0800
@@ -4,9 +4,9 @@
 // type abbreviation for partial functions
 type :=>[A, B] = PartialFunction[A, B]
 
-case class DFA[A, C](start: A,                // starting state
-                     delta: (A, C) :=> A,     // transition partial fun
-                     fins:  A => Boolean) {   // final states
+case class DFA[A, C](start: A,               // starting state
+                     delta: (A, C) :=> A,    // transition (partial fun)
+                     fins:  A => Boolean) {  // final states
 
   def deltas(q: A, s: List[C]) : A = s match {
     case Nil => q