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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 924 - 953 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
924
... That's all very well, but if it's supposed to give you associativity, then why can't you define the '=' assignment operator to be right-associative, ...
Rainer Thonnes
rainer@...
Send Email
Apr 1, 2008
9:07 am
925
... rules ... Because the version of the parser you are talking about was the old operator precedence parser, in which assignment was never really parsed as an...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 1, 2008
9:50 am
926
... OK ... If you can get your TD parser to match the structure of its rules to the structure of the parse tree it returns, then you could build associativity...
Rainer Thonnes
rainer@...
Send Email
Apr 1, 2008
1:57 pm
927
... I've been thinking about that and some way of linking a 'next op' to an operator that would generalise the whole infix/outfix thing. I.e. the "Insane...
Graham Toal
graham_toal
Offline Send Email
Apr 1, 2008
2:02 pm
928
Ok I'm supremely proud of myself tonight(yes yes it might be small to you all knowing guys ;), I didn't (well not yet, and the night is still young) get to...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 1, 2008
2:16 pm
929
... Not bad, but are you using a "private definition" by which "++d" means "d+1"? I think most of us would expect "(b=++d)" to mean "(b=(d=d+1))", and so your...
Rainer Thonnes
rainer@...
Send Email
Apr 1, 2008
4:41 pm
930
... Excuse me for a second. (ROFL Chortle Ho ho ho!) OK, I'm back :-) Been there, done that. Quite recently actually, in fact just this morning! I was...
Graham Toal
graham_toal
Offline Send Email
Apr 1, 2008
5:12 pm
931
... as i said an abortion of a language feature, since I expect it to mean (b = (d = d+1, d)) :-) At least in this particular context. It actually gets quite...
Graham Toal
graham_toal
Offline Send Email
Apr 1, 2008
5:18 pm
932
Interestingly, it was the ++ and -- operators that actually spurred me to rewrite the lexer, Python doesn't have increment/decrement operators(the language i...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 2, 2008
1:25 am
933
... Don't ask me, I have no frickin' idea! Even though in C the && and || are sequence points, the '=' isn't which makes it quite undefined. Quite often when...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
1:42 am
934
... Tim, the zip is missing and I was hoping to download and try your code. Liked the top-down parser so far, and I'm looking forward to seeing you add some ...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
1:44 am
935
from http://bytes.com/forum/thread216373.html "A sequence point is a point of time in the evaluation of a C expression, where all side effects are guaranteed...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
1:45 am
936
Oops, try http://gallery.hiddenworlds.org/srcpck.zip :) I can change the style to any colours you like, and my lexer probably wouldn't like python yet since it...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 2, 2008
2:13 am
937
... after finding it in the compilers subdirectory and downloading, I got this: gtoal@linux:~/public_html/compilers101/intro/tim> unzip *zip Archive:...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
3:19 am
938
Ok all fixed, it was probably a combination of things, probably most of all the fact that I've never coded anything ftp before, i assumed using the python...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 2, 2008
3:54 am
939
... It's like night & day :-) Thanks... G...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
4:09 am
940
... Oops. forgot I had restored it from backup already: http://www.gtoal.com/software/CompilersOneOhOne/ G...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
4:21 am
941
Here's a guy who thinks a lot like we do... There's at least 2 articles in here that should be of interest... http://tratt.net/laurie/tech_articles/ G...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
1:38 pm
942
There's some interesting stuff in there, things that I think I will come back to, I was most interested in his article about novel language features, seems all...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 2, 2008
2:19 pm
943
... It may be easier to move to your top-down parser now and add the data structure to that, then come back to see how you would add the same structure to the...
Graham Toal
graham_toal
Offline Send Email
Apr 2, 2008
3:34 pm
944
... It's amazingly easy to get lazy and slip into using "X++" all the time. But "X += 1" is just as bad (well, OK, half as bad). If you want your soul to...
Rainer Thonnes
rainer@...
Send Email
Apr 2, 2008
8:13 pm
945
Ok this was much easier once someone put my on the right path :) I was in a way already using a stack, but I'd implemented it implicitly inside the recursive...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 3, 2008
3:24 am
946
Tim, I spotted your nice tree pics this morning: http://gallery.hiddenworlds.org/compiler/syntax_tree.png Nicer than ascii art if you can assume a web page to...
Graham Toal
graham_toal
Offline Send Email
Apr 3, 2008
3:08 pm
947
It’s been a busy day, but I’ve managed to get the syntax tree implementation mostly(more on this in a bit) working and implemented a couple of ‘dumb’ ...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 3, 2008
3:12 pm
948
... Also I just remembered this from long ago: http://rw4.cs.uni-sb.de/~sander/html/gsvcg1.html...
Graham Toal
graham_toal
Offline Send Email
Apr 3, 2008
3:27 pm
949
I just thought of another couple of things I wanted to bring up: Should I leave all the syntax tree nodes fully expanded, or should I make it more like an...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 3, 2008
3:35 pm
950
... Don't know the language but it looks like you're exposing a local static. If you don't like the structure, refactor it and make the part that is common to...
Graham Toal
graham_toal
Offline Send Email
Apr 3, 2008
3:36 pm
951
... I see you've reinvented Lisp :-) There's a reason Lisp looks like it does - and why it was implemented the way it was. It's actually a good paradigm for a...
Graham Toal
graham_toal
Offline Send Email
Apr 3, 2008
3:40 pm
952
... ?array of tokens you won't have to worry about lookahead any more :-) Interestingly, the whole source code is tokenised on the first call to get_symbol...
Tim Wakeham
deltacentauri
Offline Send Email
Apr 3, 2008
3:47 pm
953
... I have no idea what you're talking about, must be that 'object oriented' stuff all the kids are using nowadays ;-) It does sound awfully complicated...
Graham Toal
graham_toal
Offline Send Email
Apr 3, 2008
6:17 pm
Messages 924 - 953 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