Implementation of Visual Computing for the Compiler of Programming Language G(?)del

Author
LiLing
Advisor
ZhaoZhiZhuo
School
Xiamen University
Major
Computer System Architecture
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2008
Downloads
19
Citations
0

Request the full text

Abstract

G(o丨¨)del is a declarative,general-purpose programming language succeeded to Prolog in the family of logic programming languages.Compared with the algorithm-based programming language such as Pascal,C and so on,logic programming language provides a declarative program designing method.So the logic language programmers focus on description the problem and quest for the solution at the level of computing model.Its simple, uniform syntax and sentences,powerful inbuilt features of unification and backtracking often allow algorithms to be encoded more elegantly than in other,more conventional languages.Unfortunately,these excellent features bring about difficulties to novices at G(o丨¨)del.Our main purpose is to design a visual system(G(o丨¨)del reference trace tool) which monitors and traces the inference steps of G(o丨¨)del language and implement this system by C++.These dissertations focus on the visual computing of G(o丨¨)del language,the description of tracing G(o丨¨)del language inference process and implementation of system.This chapter,we begin to study the status quo language G(o丨¨)del give a brief account.G(o丨¨)del reference trace tool not only plays an important role in the process of tracking displays debugging procedure,and it can also be used as a assistant tool in the G(o丨¨)del programming.G(o丨¨)del reference trace tool first calls the reference process of debugging information(SLDtree.xml), through loading debug information in the reasoning process of tracking monitors internal debugging information will be converted to CShow class, and then through the process control buttons control the display.In this way,after the implementation of procedures for compiling,in the process of reasoning we can display a dynamic real-time observation of the whole reasoning process of reasoning.Based on such an application needs,with the method of G(o丨¨)del language compiler system we give G(o丨¨)del Computing Visualization of the overall structure,and based on the visualization of G(o丨¨)del language compiler system design and visual display of part of the realization of the two methods and techniques in detail,focused on compiler system debugging information generated by the use of methods and techniques.G(o丨¨)del reference trace tool tracking display is an independent application procedures,the procedures can be run directly from the operating system,and can also run on GPDE,when G(o丨¨)del verbal reasoning process tracking monitors as part of the development environment.The importance of the logic programming has been familiar to people years before.But to be new logic programming language,G(o丨¨)del needs some time and practice to make itself to be accepted and popular,which especially requires the support of the appropriate compiler and development environment of this language.Our design G(o丨¨)del inference trace tool has debug function.The motivation for developing this new tool not only increases the productivity of experienced programmers but also to make the teaching of G(o丨¨)del more effective.G(o丨¨)del inference trace tool will help G(o丨¨)del language’ s study and be popular.We believe that G(o丨¨)del language will be able to receive more attention and obtain a more widespread use with the mature of G(o丨¨)del programming environment.

Table of contents

Abstract 4-6 Abstract 6-12 first chapter 12-23 1.1 G (o | ¨) del Language Profile 12-13 1.2 G (o | ¨) del languages ??mechanism 13-21 1.2.1 G (o | ¨) del the language type system 13-15 1.2.2 G (o | ¨) del language module system 15-17 1.2.3 G (o | ¨) del language control mechanism 17-21 1.2.3.1 calculation rules 17-19 1.2.3.2 pruning operation 19-21 1.3 G (o | ¨) del Language System Research 21 1.4 of this paper is a summary of the work 21-23 Chapter II (o | ¨) del compiler overall system design and implementation of About 23-34 2.1 G (o | ¨) del languages ??SLD refute - Digestion rules 23-27 2.1.1 SLD refute - digestion method 23-25 2.1.1.1 match 24 2.1.1.2 SLD refute - digestion method defined 24-25 2.1.1.3 SLD tree definition 25 2.1.2 G (o | ¨) del languages ??SLD refute the search strategy 25-27 2.2 to compile the overall system structure design 27-29 2.2.1 G (o | ¨) del compiler to achieve the proposed 27-28 2.2.2 G (o | ¨) del language compiler system overall structure 28-29 2.3 of G (o | ¨) del language intermediate code, design and realization of 29-34 2.3.1 G (o | ¨) del language intermediate code, design ideas 29-30 2.3.2 G (o | ¨) del language intermediate code to achieve 30-34 Chapter III (o | ¨) del Linguistic Computing Visualization Research 34-43 3.1 visualization meaning and 34-37 3.1.1 visualization technology connotation 34-35 3.1.2 visualization technology development history 35-36 3.1.3 visualization technologies to achieve 36-37 3.2 G (o | ¨) del Linguistic Computing Visualization Research 37-43 3.2.1 G (o | ¨) del verbal reasoning machine system 38-41 3.2.2.1 reasoning machine, the basic principles of 38 3.2.2.2 reasoning the process 38-41 3.2.2 Linguistic Computing Visualization of G (o | ¨) del necessity 41-43 Chapter G (o | ¨) del Linguistic Computing Visualization of 43-61 4.1 visualization two expressions 43-45 4.2 G (o | ¨) del Linguistic Computing visualization to achieve the overall structure 45-46 4.3 G (o | ¨) del Linguistic Computing compiled system design visualization 46-56 4.3.1 G (o | ¨) del Language XML-based visualization 46-51 4.3.2 XML document handling 51-56 4.3.2.1 SAX parser 51-52 4.3.2.2 DOM parser 52-54 4.3.2.3 based on the realization of the DOM to create XML documents 54-56 4.4 G (o | ¨) del Linguistic Computing visualization of the operating environment 56-61 4.4.1 based on the DOM to read XML file 56-58 4.4.2 visualization shows the realization of 58-61 the fifth chapter of the reasoning process of tracking monitor 61-66 5.1 reasoning process tracking interface 61-62 5.2 instance running 62-66 Chapter VI Summary and Outlook 66-68 6.1 summarizes 66 6.2 Looking 66-68 Appendix Ⅰ 68-75 published papers during the master's degree 75-76 References 76-78 Acknowledgements 78

Related dissertations

  1. The Design and Implementation for the Compiler of Programming Language G(?)del
    SuJianHuang ·Xiamen University ·2007 ·Master's thesis
  2. The Declarative Semantics of Logic Programming Language G(?)del
    GaoWei ·Xiamen University ·2009 ·Master's thesis
  3. The calculation model of image cognition of non classical receptive field mechanism based on
    WangXiaoMei ·Fudan University ·2012 ·Doctoral dissertation
  4. Research on the Method for Deformation Monitoring of Coal Mine Roadway Based on Visual Computing
  5. The Compiler System of ATLAS
    WangShengJun ·Jilin University ·2006 ·Doctoral dissertation
  6. Research on Visualization Model and Its Applications in Data Mining
    HuJun ·Beijing Jiaotong University ·2009 ·Doctoral dissertation
  7. Hawking Radiation, Quantum Anomalies and Kerr/CFT Correspondence of (G(?)del) Black Holes
    PengJunJin ·Central China Normal University ·2011 ·Doctoral dissertation
  8. Component Simulation and Visualization Computation of Absorber in Fire-directed Absorption Chiller
    WangShuZhong ·Tianjin University ·2004 ·Master's thesis
  9. The Algorithms and Visulizisation of Transmission Pricing Based on Complex Power Tracing
    WuWenCheng ·Southwest Jiaotong University ·2003 ·Master's thesis
  10. G (? ) Del class of universe models approximate solution
    YangShuMin ·Zhengzhou University ·2007 ·Master's thesis
  11. Moving target detection and recognition algorithms
  12. Research on Lane Departure Warning System Based on Computer Vision
  13. The Study for the Visualization of G(?)del Programs
    WangLiangLin ·Xiamen University ·2008 ·Master's thesis
  14. Strong Gravitational Lensing in the Black Hole Spacetime
    LiuYue ·Hunan Normal University ·2011 ·Master's thesis
  15. Comparison of conditional truth degree residuated lattice portrayed several logical algebra and propositional logic system
    FanXin ·Shaanxi Normal University ·2011 ·Master's thesis
  16. Research and Application of 3D Geological Modeling Visual Computing and It’s Parallelism
    HongZhenGang ·Chengdu University of Technology ·2010 ·Master's thesis
  17. Godel thinking about absolutely undecidable propositions
    ZongWeiHan ·Fudan University ·2010 ·Master's thesis
  18. Godel 's concept of realism
    YangYongMing ·Fudan University ·2010 ·Master's thesis
  19. Godel : Mathematics is not the language syntax
    ZhuZengYue ·Fudan University ·2011 ·Master's thesis