{"action":"created","issue":{"url":"https://api.github.com/repos/sdwood68/YAFFA/issues/9","repository_url":"https://api.github.com/repos/sdwood68/YAFFA","labels_url":"https://api.github.com/repos/sdwood68/YAFFA/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sdwood68/YAFFA/issues/9/comments","events_url":"https://api.github.com/repos/sdwood68/YAFFA/issues/9/events","html_url":"https://github.com/sdwood68/YAFFA/issues/9","id":172820495,"number":9,"title":"Leave doesn't work","user":{"login":"CraigLindley","id":4406008,"avatar_url":"https://avatars.githubusercontent.com/u/4406008?v=3","gravatar_id":"","url":"https://api.github.com/users/CraigLindley","html_url":"https://github.com/CraigLindley","followers_url":"https://api.github.com/users/CraigLindley/followers","following_url":"https://api.github.com/users/CraigLindley/following{/other_user}","gists_url":"https://api.github.com/users/CraigLindley/gists{/gist_id}","starred_url":"https://api.github.com/users/CraigLindley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraigLindley/subscriptions","organizations_url":"https://api.github.com/users/CraigLindley/orgs","repos_url":"https://api.github.com/users/CraigLindley/repos","events_url":"https://api.github.com/users/CraigLindley/events{/privacy}","received_events_url":"https://api.github.com/users/CraigLindley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-23T22:14:06Z","updated_at":"2016-08-24T13:48:12Z","closed_at":null,"body":"If I define a word such as the following:\r\n: test 10 0 do i 5 = if leave then loop ;\r\nthe code that is generated is wrong. \r\n\r\nIf I define this word:\r\n: test 10 0 do leave loop ;\r\nthen the generated code is correct. The problem is the if/then construct confuses leave and causes the generated code to be wrong."},"comment":{"url":"https://api.github.com/repos/sdwood68/YAFFA/issues/comments/242069990","html_url":"https://github.com/sdwood68/YAFFA/issues/9#issuecomment-242069990","issue_url":"https://api.github.com/repos/sdwood68/YAFFA/issues/9","id":242069990,"user":{"login":"sdwood68","id":3165982,"avatar_url":"https://avatars.githubusercontent.com/u/3165982?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwood68","html_url":"https://github.com/sdwood68","followers_url":"https://api.github.com/users/sdwood68/followers","following_url":"https://api.github.com/users/sdwood68/following{/other_user}","gists_url":"https://api.github.com/users/sdwood68/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwood68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwood68/subscriptions","organizations_url":"https://api.github.com/users/sdwood68/orgs","repos_url":"https://api.github.com/users/sdwood68/repos","events_url":"https://api.github.com/users/sdwood68/events{/privacy}","received_events_url":"https://api.github.com/users/sdwood68/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T13:48:12Z","updated_at":"2016-08-24T13:48:12Z","body":"Craig, I will try and work on it this weekend while on vacation. Adding the\ncontrol flow stack will touch a lot of stuff and could break some\nunexpected things, so lots of testing is needed.\n\nDo you know if anyone has a test bench that would work well with the\nArduino USB serial port?  I've had no time to look into it.\n\nStuart\n\nOn Wed, Aug 24, 2016, 9:27 AM Craig Lindley <notifications@github.com>\nwrote:\n\n> Do you think you will fix this?\n>\n> On Tue, Aug 23, 2016 at 8:16 PM, Stuart Wood <notifications@github.com>\n> wrote:\n>\n> > Yes, I've found the problem. The loop construct assumes one and only one\n> > possible leave, but the if else throws an unexpected address pushed onto\n> > the stack and causes chaos. I was able to re write the loop code to\n> handle\n> > an undetermined number of leaves, but it can't handle the if else. I\n> think\n> > it needs an independent control flow stack.....\n> >\n> > Stuart\n> >\n> > On Tue, Aug 23, 2016, 6:14 PM Craig Lindley <notifications@github.com>\n> > wrote:\n> >\n> > > If I define a word such as the following:\n> > > : test 10 0 do i 5 = if leave then loop ;\n> > > the code that is generated is wrong.\n> > >\n> > > If I define this word:\n> > > : test 10 0 do leave loop ;\n> > > then the generated code is correct. The problem is the if/then\n> construct\n> > > confuses leave and causes the generated code to be wrong.\n> > >\n> > > —\n> > > You are receiving this because you are subscribed to this thread.\n> > > Reply to this email directly, view it on GitHub\n> > > <https://github.com/sdwood68/YAFFA/issues/9>, or mute the thread\n> > > <https://github.com/notifications/unsubscribe-\n> > auth/ADBPHpCPtCYi_eOg-BrJ3DH-TBpRkl3cks5qi3CugaJpZM4JrckH>\n> > > .\n> > >\n> >\n> > —\n> > You are receiving this because you authored the thread.\n> > Reply to this email directly, view it on GitHub\n> > <https://github.com/sdwood68/YAFFA/issues/9#issuecomment-241938775>, or\n> mute\n> > the thread\n> > <\n> https://github.com/notifications/unsubscribe-auth/AEM6-NSHczpJNaKaxNySKBg3-xExHjXPks5qi6lpgaJpZM4JrckH\n> >\n> > .\n> >\n>\n>\n>\n> --\n> Craig Lindley / Heather Hubbard\n>\n> 495's Recordings: craigandheather.net/495spage.html\n> New Recordings: craigandheather.net/cnmpage.html\n> Latest rock CD: craigandheather.net/hellinahandbasket.html\n> Latest non-rock CD: craigandheather.net/craigdoesfingerstyle.html\n>\n> Personal Website: craigandheather.net\n>\n> Phone: (719) 495-1873\n> Cell: (719) 502-7925\n>\n> If you’re one in a million, there are now seven thousand people exactly\n> like you.\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/sdwood68/YAFFA/issues/9#issuecomment-242062829>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/ADBPHrWT6klFUnfZyO2oxcKfe5mxKsvkks5qjEaygaJpZM4JrckH>\n> .\n>\n"}}
{"actor":{"display_login":"sdwood68"}}