direction = horizontal; nodestyle startState [color = orange] start; nodestyle finalState [shape = doublecircle] state4 state1 state6; state1 = "/"; state2 = "/*"; state3 = "/* . *"; state4 = "/* . */"; state5 = "//"; state6 = "// . \n"; start -> state1 "/"; state1 -> state2 "*", state5 "/", start "not * or /"; state2 -> state3 "*", state2 "not *"; state3 -> state3 "*", state4 "/", state2 "not * or /"; state5 -> state6 "\n", state5 ".";