Tag Info

Hot answers tagged

2

I recommend become familiar with several programming languages (including Scheme or CommonLisp and Ocaml or Haskell). It is probable that implementing your translator in such languages would be good for you. Then I suggest to read Programming Language Pragmatics (by M.Scott) and Lisp In Small Pieces (by C.Queinnec). Of course, you'll need to read a good ...


2

I have never written a compiler, so I am out of my depth here, but here is a try: I would start by writing a lexer and parser for the language. There are many tools for this. ANTLR is one of them; it can handle both lexing and parsing. Alternatively, you can use Lex or GNU Flex to create a lexer and create a parse tree with Yacc and its implementation Bison ...



Only top voted, non community-wiki answers of a minimum length are eligible