首页> 外国专利> Source code generation from web-sourced snippets

Source code generation from web-sourced snippets

机译:Web-Sourced片段的源代码生成

摘要

The disclosure presents methods and apparatus that can be used to generate a software source code according to a user-provided specification based on example snippets searched from the Internet or a local database, comprising: providing a user-defined specification of the target program including input data, output data, a function or algorithm, and other parameters; decomposing the function into sub-functions if necessary; searching a list of related programming example codes and snippets of each sub-function; analyzing and ranking the search results; selecting and extracting the best snippet source codes; refactoring and reformatting the codes; gluing and testing the generated codes. The final source codes are supposed to be compiled successfully and implement the desired function and meet the performance requirements. Even the final compilation success is not guaranteed the described method and apparatus can help on a best-effort basis and reduce a great effort in programming.
机译:本公开介绍了可以用于根据从因特网搜索的示例片段的用户提供的规范来生成软件源代码的方法和装置,包括:提供包括输入的目标程序的用户定义规范数据,输出数据,函数或算法和其他参数;必要时将功能分解为子功能;搜索每个子功能的相关编程示例代码和片段的列表;分析和排名搜索结果;选择和提取最佳的片段源代码;重构和重新格式化代码;胶合并测试生成的代码。最终的源代码应该成功编译并实现所需的功能并满足性能要求。即使是最终的编译成功也不保证所描述的方法和设备可以通过最佳努力帮助并降低编程的巨大努力。

著录项

  • 公开/公告号US10983760B2

    专利类型

  • 公开/公告日2021-04-20

    原文格式PDF

  • 申请/专利权人 TAO GUAN;

    申请/专利号US202016793182

  • 发明设计人 TAO GUAN;

    申请日2020-02-18

  • 分类号G06F8/30;G06F8/41;G06F8/10;G06F17/15;G06N3/02;G06N5;G06N20;

  • 国家 US

  • 入库时间 2022-08-24 18:17:13

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号