Search the web
Sign In
New User? Sign Up
compilers101 · Compilers 101
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1263 - 1292 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1263
Greetings fellow compilatorians - Having a bit of a mind lock on how to fix a problem with my BASIC interpreter involving expressions. It has to do with unary...
Neil Bradley
cneilbradley
Offline Send Email
Mar 16, 2009
6:32 am
1264
... Wait! Did you say "parses"? It seems to me that all you're doing so far is lexing or tokenising, not parsing in the accepted sense. OK, to be fair,...
Rainer Thonnes
rainer@...
Send Email
Mar 16, 2009
1:10 pm
1265
... FWIW I second what Rainer said: don't try to guess that a number is negative, make the tokenizer as dumb as you can and let the parser do the job, and...
Laurent DESNOGUES
ldesnogu
Offline Send Email
Mar 16, 2009
6:18 pm
1266
... Correct - LEXING, not PARSING. ;-) Bad terminology in my email, considering that each of my tokens are enums with LEX_xxxx in front of them! ... Ayup. 100%...
Neil Bradley
cneilbradley
Offline Send Email
Mar 16, 2009
9:01 pm
1267
... Just to stir up a bit of controversy, if I may, let me say that one way to resolve that debate is simply to do away with the lexer altogether!...
Rainer Thonnes
rainer@...
Send Email
Mar 17, 2009
2:23 pm
1268
... I've long been interested in (especially tiny) self compilers. So, I set out to write the smallest self compiling compiler that I could. The compiler...
Ed Davis
ed_davis2
Offline Send Email
Mar 17, 2009
8:35 pm
1269
... No lexer? Do tell! As an aside, I'm not using lex/yacc, and I'm certainly not doing FA like lex/flex does. -->Neil ... C. Neil Bradley - EVERYBODY KERNEL...
Neil Bradley
cneilbradley
Offline Send Email
Mar 17, 2009
8:43 pm
1270
Ya I'm personally not a fan of lex/yacc either :x. ... [mailto:compilers101@yahoogroups.com] ... extensive ... way ... altogether! ... like...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Mar 17, 2009
8:47 pm
1271
... My compiler teacher (back in 1992-1993 timeframe) put it to me like this - "Lex and YACC teach you enough about lexing and parsing to thoroughly understand...
Neil Bradley
cneilbradley
Offline Send Email
Mar 17, 2009
8:52 pm
1272
Dude! I mean, DUDE!!! Nice. I think that makes you the first official graduate of compilers101 :-) Bask in the glory for now. We'll look at your wishlist of...
Graham Toal
graham_toal
Offline Send Email
Mar 17, 2009
9:56 pm
1273
... Before there was the yacc/lex split, compilers did this thing called 'line reconstruction', which was that the input text was stripped down to the simplest...
Graham Toal
graham_toal
Offline Send Email
Mar 17, 2009
10:04 pm
1274
... Actually for almost all parsers, the bottleneck is in how efficiently you handle reading the source! Speed up your IO and the parser speeds up - it's...
Graham Toal
graham_toal
Offline Send Email
Mar 17, 2009
10:12 pm
1275
Nice little compiler. :) I have one question about how you made the bootstrapping of the compiler; Did you write both the real and the C versions in parallel,...
Joachim Pileborg
jpileborg
Online Now Send Email
Mar 17, 2009
10:23 pm
1276
... Easiest way is to write it in the existing language using a subset that you know you can translate easily to the target language (assuming they're roughly...
Graham Toal
graham_toal
Offline Send Email
Mar 17, 2009
10:36 pm
1277
On March 17, 2009, Joachim Pileborg wrote: ---------------------- ... I wrote it in C first, and then translated to the tiny language. My first version only...
Ed Davis
ed_davis2
Offline Send Email
Mar 18, 2009
2:10 am
1278
... Well, not quite "no lexer". It's more a case of "no separate lexer". The characters which make up lexical items still have to be processed into...
Rainer Thonnes
rainer@...
Send Email
Mar 18, 2009
3:47 pm
1279
... Just one more thing: The obvious disadvantage of doing lexing on the fly like this is that you may have to re-lex the same item several times if your...
Rainer Thonnes
rainer@...
Send Email
Mar 19, 2009
12:29 pm
1280
... Of course if you're parsing a single character at a time, even if you do have to re-parse the same character a couple of times in an LR(1) language, it's...
Graham Toal
graham_toal
Offline Send Email
Mar 19, 2009
12:43 pm
1281
Here's a program that does symbolic manipulation for formulae in order to simplify a maths expression: http://mathomatic.org/math/adv.html It would be pretty...
Graham Toal
graham_toal
Offline Send Email
Mar 19, 2009
9:36 pm
1282
Is it me or has this list kinda gone dormant? _______________________________________________________________ Chris Cranford Database Admin / Systems...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Apr 30, 2009
5:03 pm
1283
On Thu, Apr 30, 2009 at 12:03 PM, CRANFORD, CHRIS ... I guess no-one is currently working on any compilers... I don't think anyone has left the list though,...
Graham Toal
graham_toal
Offline Send Email
Apr 30, 2009
6:41 pm
1284
... Hi Everyone, I haven't had much to say, but I've been doing a little compiler work. I'm using the Elsa C/C++ parser to generate LLVM intermediate code for ...
Richard Pennington
pennington6809
Offline Send Email
Apr 30, 2009
11:09 pm
1285
... Hey, I am! ;-) It's just that it's working fine now, and I'm just extending the language for a lot of built in features, so it isn't really all that...
Neil Bradley
cneilbradley
Offline Send Email
May 1, 2009
4:39 am
1286
... Wiki looked interesting but I couldn't find any code except the original packages. Hadn't seen the NIOS2 before. If anyone is interested here's an...
Graham Toal
graham_toal
Offline Send Email
May 14, 2009
1:20 pm
1287
... [snip] ... Graham, I added links to the wiki for both my local LLVM source and the ELLCC stuff. I didn't realize they were missing. Thanks! LLVM made doing...
Richard Pennington
pennington6809
Offline Send Email
May 16, 2009
11:39 am
1288
I've been doing a little work on my compiler over the last weekend or two, and was rather surprised to discover a pretty stupid bug in my arithmetic expression...
Graham Toal
graham_toal
Offline Send Email
May 19, 2009
2:58 am
1289
... I suspect this is not a bug, but what in the old days we used to call a BCM. Your grammar does not reflect the structure of the language you are attempting...
Rainer Thonnes
rainer@...
Send Email
May 19, 2009
11:57 am
1290
... Brain Cell Misfire? Bonehead Customer Mistake? ... OK, looks obvious now... - / \ A + / \ B C versus + / \ - C / \ A B Let me see, ... as far as...
Graham Toal
graham_toal
Offline Send Email
May 19, 2009
2:19 pm
1291
... You're on the right track, except that it's even more embarrassing: Basic Conceptual Misunderstanding. Are you old enough to have senior moments? :-) ... ...
Rainer Thonnes
rainer@...
Send Email
May 19, 2009
4:15 pm
1292
Thanks Rainer. I'll work on that this evening. Then I need to check where else the same pattern applies. I know it'll also affect multiple and divide, which...
Graham Toal
graham_toal
Offline Send Email
May 19, 2009
4:40 pm
Messages 1263 - 1292 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help