期刊文献+

Gdel语言编译时类型处理技术研究

Disposal of the Type System in Compiler for Gdel
下载PDF
导出
摘要 Gdel是一种发展中的逻辑程序设计语言,目前还没有开发出编译器。Gdel语言的类型系统独特于通常的逻辑程序设计语言,语义上已初步形成了相应的描述方法,建立了严格的理论基础。按照传统的方法,逻辑程序的运行机制和Gdel语言的多态性决定了一些变量的类型和语义只能在运行时才能确定,把这类变量的类型检查放到程序运行中处理,势必增加许多额外的计算。提出了一种处理Gdel语言类型系统的编译技术。针对语言的类型,对其相关语法进行适当修改,通过类型推断,把变量类型的检查工作提前到编译阶段完成,可以较好地处理其变量类型的语义问题,同时减少了运行时类型检查工作,从而提高程序的运行效率。 Goedel is a developing logic programming language whose compiler has not been developed yet. The type system is one of the language's features. The language is polymorphic. It means that some variables' type can't be determined untill runtime. If a program does the type-checking for this variables while running, a lot of time would be taken. A method to dispose the variables' type in compiler is proposed. The method brings the work of that variables' type-checking into compile-time by using some type-inference rules, improving the running efficiency.
出处 《计算机科学与探索》 CSCD 2010年第3期256-264,共9页 Journal of Frontiers of Computer Science and Technology
基金 福建省自然科学基金No.A030007~~
关键词 Goedel编译器 类型推断 多态处理 Goedel compiler type inference polymorphic disposal
  • 相关文献

参考文献14

  • 1Hill P M,Lloyd J W.The C(o)del programming language[M].USA:MIT Press,1994:3-23.
  • 2Lin Chunnian,Cao Dehe.Application and implement of PROLOG language[M].Beijing:Scince Press,1990:64-94.
  • 3王炳波,赵致琢,晏松.Gdel语言类型系统[J].计算机工程与设计,2005,26(12):3432-3435. 被引量:3
  • 4Gao Wei,Zhao Zhizhuo.The declarative semantics of logic programming language G(o)del[D].Xiamen:Department of Computer Science of Xiamen University,2009.
  • 5Chang Jie,Zhao Zhizhuo.The formalized procedural semantics of logic programming language G(o)del[D].Xiamen:Department of Computer Science of Xiamen University,2009.
  • 6Volpe P.A first-order language for expressing sharing and type properties of logic programs[J].Science of Computer Programming,2001,39(1):125-148.
  • 7Fox C,Lappin S.An expressive first-order logic with flexible typing for natural language semantics[J].Logic Journal of the Interest Group in Pure and Applied Logics,2003,12(2):135-168.
  • 8Kifer M,Wu J.A first-order theory of types and polymorphism in logic programming[D].Department of Computer Science of University at Stony Brook,1990.
  • 9Dart P W,Zobel J.A regular type language for logic programs[M].USA:MIT Press,1992:157-189.
  • 10Lu Lunjin.A precise type analysis of logic programs[C]//Proceedings of the 2nd ACM SIGPLAN International Conference on Principles and Practice of Declarative Programming,Montreal,Quebec,Canada,2000.

二级参考文献7

  • 1陈睿,蔡希尧.基于类型系统的元数据模型[J].软件学报,1995,6(5):265-275. 被引量:4
  • 2Gunter C A. Semantics of programming languages:structures and techniques,Foundation of computer[M].USA:MIT Press, 1992.
  • 3Barendregt H. Problems in type theory[DB/OL].http://www. cs.kun.nl/-henk/papers.html.
  • 4Donahue J, Demers A. Data types are values[J]. ACM Trans on Programming Languages and Systems, 1985, 7(3):426-445.
  • 5Terrence W, Pratt Marvin, Zelkowitz V. Programming languages design and implementation[M].北京:电子工业出版社,1998.
  • 6Hill P M, Lloyd J W. The Godel programming language[M].USA: MIT Press, 1994.
  • 7蒋慧,张兴元,王元元,谢希仁.类型系统的构造、实现及其在程序设计语言中的应用[J].南京大学学报(自然科学版),2001,37(2):199-207. 被引量:3

共引文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部