Skip to content

Commit

Permalink
rework the grammar of 'mv' to include moving code labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesabloo committed Feb 27, 2021
1 parent 2c6828c commit a03a7cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions railroad-diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ def mv_instruction():
Terminal('mv'),
Group(
Choice(
0,
1,
NonTerminal('label-value'),
NonTerminal('register'),
NonTerminal('integer-value')
),
Expand Down Expand Up @@ -493,4 +494,4 @@ def ld_instruction():

return mk_diagram('ld-instruction', inner)

call_instruction().writeSvg(sys.stdout.write)
mv_instruction().writeSvg(sys.stdout.write)
Binary file modified res/nstar/instructions/mov-grammar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a03a7cf

Please sign in to comment.