{"action":"opened","issue":{"url":"https://api.github.com/repos/chinapnr/JR/issues/64","repository_url":"https://api.github.com/repos/chinapnr/JR","labels_url":"https://api.github.com/repos/chinapnr/JR/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/chinapnr/JR/issues/64/comments","events_url":"https://api.github.com/repos/chinapnr/JR/issues/64/events","html_url":"https://github.com/chinapnr/JR/issues/64","id":340476814,"node_id":"MDU6SXNzdWUzNDA0NzY4MTQ=","number":64,"title":"c1.rule.python.python.tx 新增对IC透传规则的定义","user":{"login":"simplelife963","id":40283574,"node_id":"MDQ6VXNlcjQwMjgzNTc0","avatar_url":"https://avatars2.githubusercontent.com/u/40283574?v=4","gravatar_id":"","url":"https://api.github.com/users/simplelife963","html_url":"https://github.com/simplelife963","followers_url":"https://api.github.com/users/simplelife963/followers","following_url":"https://api.github.com/users/simplelife963/following{/other_user}","gists_url":"https://api.github.com/users/simplelife963/gists{/gist_id}","starred_url":"https://api.github.com/users/simplelife963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplelife963/subscriptions","organizations_url":"https://api.github.com/users/simplelife963/orgs","repos_url":"https://api.github.com/users/simplelife963/repos","events_url":"https://api.github.com/users/simplelife963/events{/privacy}","received_events_url":"https://api.github.com/users/simplelife963/received_events","type":"User","site_admin":false},"labels":[{"id":957171495,"node_id":"MDU6TGFiZWw5NTcxNzE0OTU=","url":"https://api.github.com/repos/chinapnr/JR/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":{"login":"simplelife963","id":40283574,"node_id":"MDQ6VXNlcjQwMjgzNTc0","avatar_url":"https://avatars2.githubusercontent.com/u/40283574?v=4","gravatar_id":"","url":"https://api.github.com/users/simplelife963","html_url":"https://github.com/simplelife963","followers_url":"https://api.github.com/users/simplelife963/followers","following_url":"https://api.github.com/users/simplelife963/following{/other_user}","gists_url":"https://api.github.com/users/simplelife963/gists{/gist_id}","starred_url":"https://api.github.com/users/simplelife963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplelife963/subscriptions","organizations_url":"https://api.github.com/users/simplelife963/orgs","repos_url":"https://api.github.com/users/simplelife963/repos","events_url":"https://api.github.com/users/simplelife963/events{/privacy}","received_events_url":"https://api.github.com/users/simplelife963/received_events","type":"User","site_admin":false},"assignees":[{"login":"simplelife963","id":40283574,"node_id":"MDQ6VXNlcjQwMjgzNTc0","avatar_url":"https://avatars2.githubusercontent.com/u/40283574?v=4","gravatar_id":"","url":"https://api.github.com/users/simplelife963","html_url":"https://github.com/simplelife963","followers_url":"https://api.github.com/users/simplelife963/followers","following_url":"https://api.github.com/users/simplelife963/following{/other_user}","gists_url":"https://api.github.com/users/simplelife963/gists{/gist_id}","starred_url":"https://api.github.com/users/simplelife963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplelife963/subscriptions","organizations_url":"https://api.github.com/users/simplelife963/orgs","repos_url":"https://api.github.com/users/simplelife963/repos","events_url":"https://api.github.com/users/simplelife963/events{/privacy}","received_events_url":"https://api.github.com/users/simplelife963/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/chinapnr/JR/milestones/7","html_url":"https://github.com/chinapnr/JR/milestone/7","labels_url":"https://api.github.com/repos/chinapnr/JR/milestones/7/labels","id":3490257,"node_id":"MDk6TWlsZXN0b25lMzQ5MDI1Nw==","number":7,"title":"DSL语法结构优化调整","description":null,"creator":{"login":"simplelife963","id":40283574,"node_id":"MDQ6VXNlcjQwMjgzNTc0","avatar_url":"https://avatars2.githubusercontent.com/u/40283574?v=4","gravatar_id":"","url":"https://api.github.com/users/simplelife963","html_url":"https://github.com/simplelife963","followers_url":"https://api.github.com/users/simplelife963/followers","following_url":"https://api.github.com/users/simplelife963/following{/other_user}","gists_url":"https://api.github.com/users/simplelife963/gists{/gist_id}","starred_url":"https://api.github.com/users/simplelife963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplelife963/subscriptions","organizations_url":"https://api.github.com/users/simplelife963/orgs","repos_url":"https://api.github.com/users/simplelife963/repos","events_url":"https://api.github.com/users/simplelife963/events{/privacy}","received_events_url":"https://api.github.com/users/simplelife963/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2018-07-12T02:54:38Z","updated_at":"2018-07-12T03:29:21Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-12T03:29:20Z","updated_at":"2018-07-12T03:29:20Z","closed_at":null,"author_association":"NONE","body":"## 背景\r\n目前c1中的DSL语句并未实现逻辑及流程控制，因此对于特定场景的业务逻辑DSL无法进行描述。实现c1 DSL与c2 IC混编的方式，将会大幅提升DSL的灵活性。\r\n\r\n## 透传部分语法格式\r\n```python\r\ndef IC_Block(): \r\n    # Python 或 c2 代码块\r\n    pass \r\n```\r\n除pass语句，函数体内其他部分即为需要透传的代码块。\r\n\r\n## 范例代码\r\n```python\r\ndef IC_Block(): \r\n    foo.bar.set_name('Bob')\r\n    bar.foo.set_age('Alice', 25)\r\n    pass \r\n```\r\n透传后生成的IC为：\r\n```python\r\n    foo.bar.set_name('Bob')\r\n    bar.foo.set_age('Alice', 25)\r\n```\r\n\r\n注意，当前版本仅支持到代码块之间的混编，例如：\r\n```python\r\ndef foo():\r\n    k1 >> v1\r\n    pass\r\n\r\ndef IC_Block():\r\n    Person.set_name('Bob')\r\n    pass\r\n\r\ndef bar():\r\n    k2 >> v2\r\n    pass\r\n````\r\n\r\n尚未实现在c1 DSL中嵌入c2 IC这种混编模式。例如：\r\n```python\r\ndef foo():\r\n    k1 >> v1\r\n    Person.set_name('Bob')\r\n    k2 >> v2\r\n    pass\r\n````"}}
{"actor":{"display_login":"simplelife963"}}