Skip to content

Commit

Permalink
Incorrect state machine diagram in Introduction to Debugging (Issue #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed May 15, 2024
1 parent 5dadf27 commit fa0d8e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notebooks/Intro_Debugging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
"state_machine.node('Start', )\n",
"state_machine.edge('Start', '¬ tag')\n",
"state_machine.edge('¬ tag', '¬ tag', label=\" ¬ '<'\\\\nadd character\")\n",
"state_machine.edge('¬ tag:s', '¬ tag', label=\"'>'\")\n",
"state_machine.edge('¬ tag', 'tag', label=\"'<'\")\n",
"state_machine.edge('tag', '¬ tag', label=\"'>'\")\n",
"state_machine.edge('tag', 'tag', label=\"¬ '>'\")"
Expand All @@ -480,7 +481,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You see that we start in the non-tag state (`¬ tag`). Here, for every character that is not `'<'`, we add the character and stay in the same state. When we read a `'<'`, though, we end in the tag state (`tag`) and stay in that state (skipping characters) until we find a closing `'>'` character."
"You see that we start in the _non-tag_ state (`¬ tag`). Here, for every character that is not `'<'`, we add the character and stay in the non-tag state. `'>'` characters are skipped, though.\n",
"\n",
"When we read a `'<'`, though, we transition to the _tag_ state (`tag`) and stay in the tag state, skipping characters up to a closing `'>'` character, which makes us transition to the _non-tag_ state again."
]
},
{
Expand Down

0 comments on commit fa0d8e6

Please sign in to comment.