{"id":13780682,"url":"https://github.com/fromddy/Drawing-interpreter","last_synced_at":"2025-05-11T14:32:57.524Z","repository":{"id":215855019,"uuid":"186740861","full_name":"fromddy/Drawing-interpreter","owner":"fromddy","description":"绘图语言的解释器，满足你对于一个绘图语言的美丽想象。","archived":false,"fork":false,"pushed_at":"2019-07-03T01:11:14.000Z","size":3098,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-17T15:49:00.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fromddy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-15T03:15:31.000Z","updated_at":"2022-01-06T08:51:12.000Z","dependencies_parsed_at":"2024-01-18T08:54:05.347Z","dependency_job_id":"eb12124a-686b-47fb-ae81-9569373904bb","html_url":"https://github.com/fromddy/Drawing-interpreter","commit_stats":null,"previous_names":["fromddy/drawing-interpreter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromddy%2FDrawing-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromddy%2FDrawing-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromddy%2FDrawing-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromddy%2FDrawing-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fromddy","download_url":"https://codeload.github.com/fromddy/Drawing-interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253580116,"owners_count":21930885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:18.658Z","updated_at":"2025-05-11T14:32:57.174Z","avatar_url":"https://github.com/fromddy.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Drawing-interpreter\n绘图语言的解释器，满足你对于一个绘图语言的美丽想象。\n\n非常重要的一个特性是可以动态显示，\n所以小伙伴们一定要自己动手来运行一下哦。\n\n## 运行\nwindows 10  \n在codeblocks中建立项目 把所有的源代码添加到项目中  \n编译选项如下图  \n\u003cimg src=\"./pic/read.png\" width=500 /\u003e\n\n把测试样例放在某个windows系统中的位置，如E盘\n然后在main.c当中修改打开的文件位置，如图所示\n\n点击编译和运行 就可以看到美丽的图像了：）\n\n如果遇到问题可以发邮件给我 我的邮箱是ddy_mainland@163.com\n\n## 支持的语法规则\n```\norigin is （100,300);     --设置原点的偏移量  \nrot is 0；                --设置旋转角度（不旋转）  \nscale is (1,1);          --设置横纵坐标的比例  \nfor t from 0 to 200 step 0.01 draw(t,cos(t));  --设置坐标的轨迹  \ncolor is 234 234 123 ;    --设置点的颜色\n```\n其他运行的细节可以参考样例。  \n\n提供了多组样例，自己亲手运行有惊喜哦。\n\n## data1.in的呈现效果\n\u003cimg src=\"./pic/1.png\" width=1000 /\u003e\n\n## data2.in的呈现效果\n\u003cimg src=\"./pic/2.png\" width=1000 /\u003e\n\n## data3.in的呈现效果\n\u003cimg src=\"./pic/3.png\" width=1000 /\u003e\n\n## lex 和 yacc 运行命令\n```\n//用flex生成词法分析器\nflex -i lexer.l 生成文件 lex.yy.c\nbison -d -o y.tab.c parser.y //注： -d要生成头文件y.tab.h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromddy%2FDrawing-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromddy%2FDrawing-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromddy%2FDrawing-interpreter/lists"}