Hello, this is my first post to the group, so hello to everybody, and thanks for the very valuable discussions you've had! My question is related - as already...
... Welcome! Nice to see a post again, the group has been somewhat sleepy recently. I don't know of any documentation for that version of the compiler (and I...
Hi Friends (at) compilers101@yahoogroups.com, Recently found an interesting new (published June 2007) programming language on the web called "Katahdin" by...
I was checking the group membership today and I see we have a steady stream of new members, but no new posts. Folks, there's a lot of the old timers still here...
Thanks Graham, I want to write my first compiler. I don't know how to start. What books and guides should I read? Is there simple tutorials and frameworks to ...
... There are lots of acceptable documents on the net, and you'll have no problems finding them with Google (hint: americans user the word 'primer' where a...
... You can see where I'm going with this... we start with what is basically a compsci 1 exercise of writing a calculator, and incrementally add to it in a way...
... Grrr! I was using the 'rich text editor' feature of Yahoo Groups to embed a graphic in the page but that fell flat when Yahoo stripped it back out again...
... Looking good! Now on to the next one... Did you do the simple 1-accumulator left-to-right evaluator that came before the reverse polish example? Because...
I did try to do it, but was lost in the process. Given the example: 2 + 3. If I do it like i did it in this example I'll get the following: step 1: add 2 to...
A suggestion. There are many online e-learning solutions out there. You can set up a web page and set a curriculum, as well as give homeworks. For instance,...
On Thu, Feb 28, 2008 at 4:36 PM, compiler_builder ... This first exercise is really simple and you don't need a stack at all. You do sort of need a tiny...
This is what I came to now, and it seems it's working (no operator precedence): #include <stdio.h> #include <string.h> int main() { int i; int acc = 0; char op...
... Still doing good. Before you start the next exercise, I'ld like you to do some maintenance on your example programs and make them a little more general;...
... The next exercise is a small and incremental one. take the code above (or your restructured version if you've already done that), and at the point where...
Thank you for tutoring me. I've switched to C# because it has many built-in functions for managing arrays. The part I'm currently working on is identifying ...
One more question. How would my compiler decide how to compile: a = b+++c; prefix (++x) has a lower precedence of a postfix operator (x++), meaning the...
... It's true that it doesn't matter what language you write in - *but* there's a strong argument for writing your code in as simple a way as possible without...
A good point. I'll drop C# in favour of a simple C. I'll create an array holding all atoms, just like you suggested. I'll even add a variable holding line...
Hi all, I have an interest in compiler construction and I've been lurking here for a month or two. For a little background, I have actually written something...
Erik de Castro Lopo
mle+ll@...
Mar 1, 2008 3:11 am
815
... The answer is how do you *want* it to handle it? ... Well, that choice forces your grammar/lexer design. Some languages force left-to-right tokenization,...
... Yep, that's what I do too. :-) In fact I usually note the column number too so that I can throw the user straight to it in EMACS :-) ... For arrays of...
On Fri, Feb 29, 2008 at 7:52 PM, Erik de Castro Lopo ... And things like this are the reason that it's worth learning compiler-writing. Surprisingly a lot of...
... Here's a small incremental restructuring of your code: #include <stdio.h> #include <string.h> int get_expression(char *expression, int acc, int *i, char...