... Or other than disallowing #include :-) ... Agreed, there is not much to be gained by splitting the preprocessor off from the compiler; it may make the...
Rainer Thonnes
rainer@...
Apr 1, 2006 1:36 pm
677
... Well, after wasting a week on this, I decided it was a bad idea, and re-examined the process of line reconstruction for any relevancy in the world of...
... That was my feeling too, though I didn't want to say anything at the time without giving it detailed thought.. ... Remind me of why you want to do line...
Rainer Thonnes
rainer@...
Apr 3, 2006 9:48 am
679
... Because I want to see if I can make an Edinburgh-style parser generator work with a non-stropped language. And as you know those parsers work with a...
... Fair enough, but the Tiny language doesn't delimit by line, so you're really doing stream (not line) reconstruction. It seems to me you'll need a flexible...
Rainer Thonnes
rainer@...
Apr 3, 2006 11:28 pm
681
... Actually I'm taking advantage of the size of modern computers and storing the entire program, pre-processed, in RAM. With the weird syntax of Tiny I can...
I'm getting happier with the way this new parser is working out; I can now take the grammar file, http://www.gtoal.com/compilers101/tacctwo/tiny.g and convert...
... This is looking pretty slick. It's interesting to note, with 3+ decade hindsight, how clumsy that style of "takeon" is at dealing with indefinite...
Rainer Thonnes
rainer@...
Apr 4, 2006 10:28 pm
685
Hello, I am a UG student and as part of the curriculum i have done a course on compilers and a small project(using lex & yacc) to compile very simple C...
... Done! Very small parser, you can see why I like this method. This plus a small table of ints is pretty much all you need. int parse(int pp) { int...
For 3 and 4 only. x86 protected mode more complex for OS writer but more simple for application writer. In protecrted mode you have large addressable by offset...
I had just finished lexing and parsing, and was about to start work on designing a code generator, when I realised that with about an hour's work I could...
... Jolly good that you've been able to compile a faulty program. :-) This program does not conform to the grammar, or if it does, the grammar is wrong....
Rainer Thonnes
rainer@...
Apr 9, 2006 11:16 pm
690
Hello I am trying to convert TAC to assembly and assembly to object code, but having difficulties. I am using linux. In my language when an identifier is first...
... By "TAC" do you mean something specific or just three-address code in general? ... Is this a one-pass compiler? Are you generating assembly as you process...
... in ... I mean three address code in general ... write ... Yes one pass compiler. parser is recursive descent it generates three address code as it...
... OK, well, that's one of the things that you do need to get to grips with. Every assembler and/or compiler has to somehow handle forward references and...
... this example is not exactly consistent to three-address code conventions. Maybe you mean something like: start t1 = readarg(b); t2 = readarg(c); t3 = t1 *...
hello I am new to the group and I was looking for any compiler Implementation code written in java. I have found one witten in c but I want it in java. I...
... Just FYI folks, we get stupid questions like this all the time nowadays (mostly from India); I usually don't moderate them through but I thought I'ld let...
thank you and G. Toal, I am working on it ... this example is not exactly consistent to three-address code conventions. Maybe you mean something like: start t1...
Question about environment, not about compiler writing. I have trouble with this compiler on Windows (http://www.exmortis.narod.ru/index_eng.html - oc.zip). It...
... can't answer your question but I wanted to point out to our members that the URL above is a great site that I wasn't aware of until just now. Especially...
... I think it is the DOS/Windows vs. Unix thing. Under Unix, there is not a text mode, and hence no translation. However, DOS/Windows has a text mode, and...
i joined this group just recently .i will work on it once my college exams r over . just replied to let u know i m here :) Sivakumar ... [Non-text portions of...
... Oh come on, is there no-one out there who did even a little bit of coding last month? It doesn't have to be complete, let's see a little of your...
... Guilty as charged, your honour. I've been making small bursts of progress in the few spare moments I've had inbetween other distractions. I've been...
Rainer Thonnes
rainer@...
May 17, 2006 4:14 pm
704
... A common attitude among perfectionists like yourself :-) There must be some part you've finished you're happy with - how about that operator precedence...