Skip to content

Instantly share code, notes, and snippets.

@pcyu16
Created May 24, 2010 13:36
Show Gist options
  • Select an option

  • Save pcyu16/411865 to your computer and use it in GitHub Desktop.

Select an option

Save pcyu16/411865 to your computer and use it in GitHub Desktop.
output for compiler hw
Read: x
If
Op: <
Const: 0
Id: x
Assign to: fact
Const: 1
Repeat
Assign to: fact
Op: *
Id: fact
Id: x
Assign to: x
Op: -
Id: x
Const: 1
Op: =
Id: x
Const: 0
Write
Id: fact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment