Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #755

Tiger compiler, lexical analysis: looking for reviews and comments

From Bart Vandewoestyne <bart.vandewoestyne@gmail.com>
Newsgroups comp.compilers
Subject Tiger compiler, lexical analysis: looking for reviews and comments
Date 2012-09-25 05:40 -0700
Organization Compilers Central
Message-ID <12-09-019@comp.compilers> (permalink)

Show all headers | View raw


Hello all,

As a hobby and fun project, and partly also to improve my C
programming skills, I have started working my way through Appel's
'Modern Compiler Implementation in C'.

I have just finished chapter 2 on lexical analysis and I think I have
a lexer which is quite ok.  However, before I move on to chapter 2, i
want to make sure my lexer is *more than* OK.  So if you're
interested, then I would like to ask you:

1) Please review my tiger.lex file from both the style point of view
(indentation, comments, clean coding?) and from the correctness point
of view.

2) Please stress-test my lexer and find bugs.  If you find a bug, then
please provide me a .tig file that illustrates what goes wrong and I
will try to fix it myself.

3) If you have a GitHub account, feel free to follow me and send me
pull requests with improvements.  If you don't have a GitHub account,
create one, because social coding rockzzz! ;-)

Any other suggestions or comments are also always welcome!  My code
can be found on GitHub in the chap02 directory at
https://github.com/BartVandewoestyne/c/tree/master/books/Modern_Compiler_Implementation_in_C/

Regards,
Bart

Back to comp.compilers | Previous | Next | Find similar


Thread

Tiger compiler, lexical analysis: looking for reviews and comments Bart Vandewoestyne <bart.vandewoestyne@gmail.com> - 2012-09-25 05:40 -0700

csiph-web