Hiya Raheem (and everyone else) Firstly i can't thank u enough! You're really helping me put this all in perspective :) Ok lazy evaluation is basically...
... You can do lazy evaluation trivially without needing lambda calculus. The latter somewhat requires creating functions on the fly as first-class objects,...
Hi Group. I recently ported Jack's 'Tiny' compiler to C, and added some additional functionality (article published in January's C/C++ Users Journal). Anyway,...
... Pete, I've been looking over your compiler and I see that you've also modified the Tiny language to be (slightly) more C-like than the original which was...
... OK, we're on! That's three people, enough to make a start! I'll write up a little in the group wiki area and we'll see what we can get done starting...
Here's the home page for our compiler-writing competition: http://www.gtoal.com/software/CompilersOneOhOne/CodingCompo It's on a wiki, and you are all invited...
Wow, you guys move quickly! TinC was really a "just for fun" learning exercise, so there's no documented grammar for the language definition, but you're right...
... So *that's* where that operator precedence algorithm came from! I had written it up as folklore, I didn't realise it had ever been used in a serious...
It's interesting tracing things back to their roots. I'm very fond of the work done by "Amazing" Grace Murray Hopper (look up "first compiler" aka A/0 or A0 or...
Hi Guys, I really want to be part of this, but you guys are moving too quickly. Not sure I can keep up, but I'll try ... I've added myself to the wiki, ... ...
... Good show :-) ... Actually, there's no rush. Yahoo's mail screwed up at the weekend, and the posts I made announcing the contest didn't turn up on Friday...
My last try at the Tinc grammar for a while - gotta get to work! tinc = {decls} {procedures} block . procedures = 'procedure' ident '(' formallist ')'...
I have a question about updating the Wiki: ... And you are correct. Both appear to be allowed. So, do I update the Wiki and say this ("Both are allowed"), or...
... I think there is a problem in the expression parser, regarding the handling of unary plus/minus. Here is the original tutorial ... procedure Expression; ...
There's an 'oops' there too - look at line # 1855 ... if (nextreg = -1) S'funny how you always spot these things a year after you wrote it ! I'm sure there'll...
... That's right, the production is wrong. ... Agreed, it is an error. Notice how inside the TopDecls parsing loop it explicitly tests for...
Rainer Thonnes
rainer@...
Mar 21, 2006 1:36 am
631
... Please, update it :-) Make it so that the final text flows smoothly, once we've settled an issue. ... There may be some clearly identifiable bugs in the...
Based on the feedback, I need to quickly point out a couple of things. TinC was based on Tiny 1.1, which is covered in Section 11 of Jack's document. Features...
... I missed the prototypes. We definitely keep them, otherwise any recursion other than self-recursion is impossible. Agree with trashing the 'interrupt'...
... We are, and it's quite fun dissecting an implementation as you learn a lot about it that way. We hope you'll do the same for us when we eventually post...
... You don't *have* to. Presumably the implementation will either be left-associative or right associative, and a meaning will be attached to b>>2<<3 -...
... Yes you do. The reference implementation specifically disallows double sided comparisons (a<b<c has to be written a<b&b<c), and because the shiftops are...
Rainer Thonnes
rainer@...
Mar 21, 2006 10:27 am
637
... Good catch on the '<<' being treated as a comparison, Rainer! OK, here's how we handle this for the competition (for now): 1) We only test the compilers...
... They work in a slightly non-intuitive way. It appears that in a prototype declaration the variable names are optional, and in the declaration of a...
Rainer Thonnes
rainer@...
Mar 21, 2006 3:21 pm
639
... That was another mistake on my part. I left out the '[]' around formallist, as in: procedures = 'procedure' ident '(' [formallist] ')' block . formallist...
... The code is so well-written that it doesn't take a genius to see what it does. But if you want to label me a genius anyway, hey, what can I do? I'm too...
Rainer Thonnes
rainer@...
Mar 21, 2006 10:52 pm
641
... Well, I expect I will write several while testing my compiler; so will you and everyone else. I bet Pete Gray has a few already written too. We'll work...
I don't know about the rest of you guys, but I for one would really, *really* like a peek at this one. Come to think of it, there's a lot of members in this...