首页> 外文会议>European Conference on Machine Learning and Knowledge Discovery in Databases >Towards Machine Learning of Grammars and Compilers of Programming Languages
【24h】

Towards Machine Learning of Grammars and Compilers of Programming Languages

机译:朝着机器学习语法和编程语言编纂者

获取原文

摘要

This paper discusses machine learning of grammars and compilers of programming languages from samples of translation from source programs into object codes. This work is an application of incremental learning of definite clause grammars (DCGs) and syntax directed translation schema (SDTS), which is implemented in the Synapse system. The main experimental result is that Synapse synthesized a set of SDTS rules for translating extended arithmetic expressions with function calls and assignment operators into object codes from positive and negative samples of the translation. The object language is a simple intermediate language based on inverse Polish notation. These rules contain an unambiguous context free grammar for the extended arithmetic expressions, which specifies the precedence and associativity of the operators. This approach can be used for designing and implementing a new programming language by giving the syntax and semantics in the form of the samples of the translation.
机译:本文讨论了从源程序到对象代码的转换样本的语法语法和编程语言编译器的机器学习。这项工作是在突触系统中实现的明确子句语法(DCGS)和语法定向翻译模式(SDTS)的增量学习应用。主要实验结果是Synapse合成了一组SDTS规则,用于将扩展算术表达式转换为从函数调用和分配运算符转换为来自翻译的正和负样本的对象代码。对象语言是一种基于逆波兰符号的简单中间语言。这些规则包含扩展算术表达式的明确上下文的语法语法,它指定了运算符的优先级和关联性。这种方法可用于通过以翻译样本的形式给出语法和语义来设计和实现新的编程语言。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号