M.Sc. Tezi Görüntüleme | |||||||||||||||||||||
|
|
||||||||||||||||||||
Summary: Recently, there have been developed many tools which automates the process of compiler construction for programming languages. Compared to the past, it is easier and more efficient to carry out the analysis of the source code, the transformation of the intermadiate code, the optimization and the transformation of the target code using these tools. In this work, it is aimed to implement a web based interpreter. All the interpreting operation are performed by defining a programming language called MiniHaskell a subset of the Haskell which is a functional programming language.Interpreters consist of the phases of Lexical Analysis, Syntactical Analysis, Semantic Analysis and Interpretation. The main parts of the code required for each phase are written by means of tools such as JavaCC and JTB which can generate code for Java language, depending upon the grammar rules of the MiniHaskell language. The codes produced automatically and manually in the work are integrated into a Java applet program so that it can run online.Keywords: Interpreter, Haskell, JavaCC, JTB, Compiler Design |