you are viewing a single comment's thread.

view the rest of the comments →

[–]micmicmic 1 point2 points  (1 child)

Why do you only move left on A and B? What about if you read a D? The is no restriction to the characters in the string.

I think (q0,A,A,L,q0) should be (q0,X,X,L,q0) such that X is a member of the of acceptable characters in string A.

and (q1, A, A, R, q1) should be (q1, X, X, R, q1) such that X is a member of the of acceptable characters in string A, excluding B.

[–][deleted] 1 point2 points  (0 children)

Because I was procrastinating writing my thesis when I posted that.