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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 528 - 557 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
528
I finally sat down and hacked out how to do operator precedence properly using an AST, and a grammar which does not embody precedence in the grammar. It turns...
Graham Toal
graham_toal
Offline Send Email
Jan 11, 2005
4:24 am
529
I explained the operator precedence algorithm a bit better on my Wiki: http://www.gtoal.com/software/OperatorPrecedence If anyone knows of any other references...
Graham Toal
graham_toal
Offline Send Email
Jan 12, 2005
5:36 am
530
... This looks very interesting. Can you provide definitions for the following? TRIP opsym rightchild prio arity leftchild...
ed_davis2
Offline Send Email
Jan 12, 2005
2:18 pm
531
... "triple", i.e. an AST node. (it's just an int) ... the operator ('+', '*' etc) ... right branch of an AST node ... priority of an operator ... no. of...
Graham Toal
graham_toal
Offline Send Email
Jan 13, 2005
12:31 am
532
for more operator precedence fun, I wrote up a silly algorithm that I learned at Edinburgh back in the 70's: ...
Graham Toal
graham_toal
Offline Send Email
Jan 13, 2005
2:20 am
533
I have a YACC grammar (complete with attributes) that I'd like to convert to recursive descent. The grammar is for a Pascal subset, so the language can be...
ed_davis2
Offline Send Email
Jan 21, 2005
4:06 pm
534
... No, it's quite reasonable. But first you have to refactor the grammar from left-recursive to right-recursive, eg EXPR :== <expr> <op> <term> ... becomes ...
Graham Toal
graham_toal
Offline Send Email
Jan 21, 2005
6:37 pm
535
I ran across an interesting language called Euphoria. It is a general-purpose imperative language. But what really distinguishes it is a datatype called a...
Ed Davis
ed_davis2
Offline Send Email
Jan 26, 2005
2:17 pm
536
... It's a good idea. Of course it was also a good idea when it was first invented. Anyone remember POP2? LOGO? One of the few useful cross-overs from...
Graham Toal
graham_toal
Offline Send Email
Jan 27, 2005
1:27 am
537
... It's clean, but there's nothing new or clever. It's a standard compiler implementation much like PL/0, Tiny Pascal, Pascal-S, etc. see also Programming...
Graham Toal
graham_toal
Offline Send Email
Jan 27, 2005
5:22 am
538
This appears to be an interesting tool: PLC, or Programming Language Creator. Supposedly you can create your own programming language and run it in their...
Rick Clark
rickclark58
Offline Send Email
Jan 28, 2005
8:22 pm
539
What do you think about local functions (as in Pascal, Modula2, Oberon, Ada, etc.)? I can't decide whether I love them or hate them. For instance, I've seen...
ed_davis2
Offline Send Email
Mar 5, 2005
2:30 pm
540
... Pro. Back in the days when the only choices were Fortran or Algol, nested functions were the default expectation, and Fortran was seen as being deficient;...
Graham Toal
graham_toal
Offline Send Email
Mar 5, 2005
4:30 pm
541
... My very first Language was Fortran, in a college course in 1977. While I liked programming, I didn't much care for Fortran. My next language was Algol-W,...
Ed Davis
ed_davis2
Offline Send Email
Mar 7, 2005
5:24 pm
542
I have developed a small language (compiler to p-code , p-code interpreter ) using Cocor compiler construction tool and c++. I am a novice in compiler...
kndoro
Offline Send Email
Mar 7, 2005
6:52 pm
543
... Passing on a note from one of our members who knows a lot more about this than me (mildly edited [in brackets] for context): } Nested procedures aren't...
Graham Toal
graham_toal
Offline Send Email
Mar 7, 2005
7:25 pm
544
I NOTICED THAT THE DIAGRAM CAME OUT BADLY IN THE LAST POST , HERE IT IS AGAIN. MEMORY CELL ARRAY _________ [|Memory |] [|Cell 1 |] [|_______|] [|Varname|] ...
kndoro
Offline Send Email
Mar 7, 2005
7:42 pm
545
Hi: I really need help here. The following code contains my Flex file which is already finished, my Bison file which I'm told is all wrong, and a copy of...
arkuylen
Offline Send Email
Mar 15, 2005
10:12 pm
546
Hello, ... For starters, the syntax of your yacc file seems to be wrong. For instance, when you say open_decl ECL_OPEN ... it probably should look like ...
Mauro Persano
mauro_persano
Offline Send Email
Mar 15, 2005
10:50 pm
547
Dear Mauro: Yes it is. But of a different kind. I'm supposed to take xml code, parse it, use C, and finally input this data as sql. I said its homework,...
Alfred Kuylen
arkuylen
Offline Send Email
Mar 16, 2005
2:45 pm
548
... and finally input this data as sql. I said its homework, but of a different kind, because its a project which will be counted on as a final. In other...
Graham Toal
graham_toal
Offline Send Email
Mar 16, 2005
3:13 pm
549
It is worth bearing in mind that Intel machines directly support displays with the ENTER and LEAVE instructions. These automate the setting up of the display....
Paul Cockshott
wpc@...
Send Email
Apr 5, 2005
2:22 pm
550
... The page above is slightly updated, and I've used that algorithm in a real(ish) program: http://www.gtoal.com/athome/utils/xpp.c.html It's worth having a...
Graham Toal
graham_toal
Offline Send Email
May 13, 2005
3:58 am
551
... Heh, it just shows that some things never go out of style. Thanks for the example. Rick Clark Discover Yahoo! Find restaurants, movies, travel and more fun...
Rick Clark
rickclark58
Offline Send Email
May 13, 2005
4:03 pm
552
I'm trying to figure out which is the best way to parse the following simple grammar, using a hand-written parser: stmtseq = {stmt} stmt = "if" expr "then"...
Ed Davis
ed_davis2
Offline Send Email
Jun 4, 2005
5:26 pm
553
... The closing square bracket is in the wrong place, isn't it? ... The grammar is incomplete and glosses over the existence of "normal" simple statements,...
Rainer Thonnes
rainer@...
Send Email
Jun 5, 2005
10:25 pm
554
... Sorry about that. It should be: stmt = "if" expr "then" stmtseq ["else" stmtseq] "endif" ... I did mean "not". The loop should continue while one of...
Ed Davis
ed_davis2
Offline Send Email
Jun 6, 2005
7:30 pm
555
... Hmm. What am I missing here? Is "token" not the same thing as what "is_token" looks at before consuming it? If so, then it seems to me that all the...
Rainer Thonnes
rainer@...
Send Email
Jun 6, 2005
8:58 pm
556
Hello All, I designed a new object oriented programming language named "Awal" as part of my MS Computer Sciences thesis. Now I want to develop a fully working...
Adeel Javed
chadeeljaved
Offline Send Email
Jun 10, 2005
9:56 am
557
I'm trying to figure out how to generate quads. I can generate p-code while parsing, or generate an AST and generate p-code from that, but I have not figured...
Ed Davis
ed_davis2
Offline Send Email
Jun 18, 2005
1:44 pm
Messages 528 - 557 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