Doing a compiler in Turbo Pascal

pjmlp@students.si.fct.unl.pt (Paulo Jose Matos Lopes Pinto - Aluno Eng. Informatica)
8 Jun 1996 18:43:18 -0400

          From comp.compilers

Related articles
Doing a compiler in Turbo Pascal pjmlp@students.si.fct.unl.pt (1996-06-08)
| List of all articles for this month |

From: pjmlp@students.si.fct.unl.pt (Paulo Jose Matos Lopes Pinto - Aluno Eng. Informatica)
Newsgroups: comp.compilers
Date: 8 Jun 1996 18:43:18 -0400
Organization: Faculdade de Ciencias e Tecnologia, Univ. Nova de Lisboa,Portugal
Keywords: Pascal, question, comment

        Hi,


        I'm thinking of building a Turbo Pascal
    compiler in Turbo Pascal (TP), using his
    Object Pascal variant.
        The compiler would translate the code to
    C, just like cfront does with C++.
        My point is :
            - Is it worth to generate C code in such
          a way that I can compile the compiler to
          C to port the compiler to other enviroments ?


            - Should I bootstrap the compiler or use the
        option refered in the last point ?


      My primary goal is to work in MS-DOS to develop
    the compiler and after some time port it to Linux.


      Bye for now.


| Paulo Pinto, pjmlp@students.si.fct.unl.pt |
[Well, there's already p2c, a surprisingly good Pascal to C translator
available on the net. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.