Skip to content

Instantly share code, notes, and snippets.

@okram
Created November 14, 2019 11:22
Show Gist options
  • Save okram/f7605bdd4e0e2f914e59fb362e490116 to your computer and use it in GitHub Desktop.
Save okram/f7605bdd4e0e2f914e59fb362e490116 to your computer and use it in GitHub Desktop.
mmadt> [start,int][plus,10][is,[gt,3]][branch,[mult,20][minus,7][gt,4],[plus,30]]
==>bool{?} <= [is,[a,int]][plus,10][is,bool <= [is,[a,int]][gt,3]][mult,20][minus,7][gt,4]
==>int{?} <= [is,[a,int]][plus,10][is,bool <= [is,[a,int]][gt,3]][plus,30]
mmadt> [start,int][plus,10][is,[gt,3]] * ([mult,20][minus,7][gt,4] + [plus,30])
==>bool{?} <= [is,[a,int]][plus,10][is,bool <= [is,[a,int]][gt,3]][mult,20][minus,7][gt,4]
==>int{?} <= [is,[a,int]][plus,10][is,bool <= [is,[a,int]][gt,3]][plus,30]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment