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 1078 - 1107 of 1320   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1078
Thanks for all the input Tim, Graham, and Rainer. I am still using a very simplistic example code file for my parser/lexer to get a good base and will expand...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Aug 1, 2008
3:12 pm
1079
Right now my simple language supports statements in the format of: <program> := <statements> <statements> := <statement> | <statements> <statement> :=...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Aug 14, 2008
8:17 pm
1080
Over the last few days, I have done a lot of reading about how other compiler/interpreters handle type checking scenarios plus had a few off list discussions...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Aug 29, 2008
4:31 pm
1081
Before we get into too much detail, tell us how you want your language to behave from the user's point of view. What do you consider an error? Syntactically,...
Graham Toal
graham_toal
Offline Send Email
Aug 29, 2008
5:21 pm
1082
I will try to answer your questions as best as I can. The language is expected to follow a very similar premise as ANSI BASIC does. The language will have...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Aug 29, 2008
6:04 pm
1083
On Fri, Aug 29, 2008 at 1:04 PM, CRANFORD, CHRIS ... yes :-) Here are some sketchy notes, I might add more detail later. I don't have your AST to hand to give...
Graham Toal
graham_toal
Offline Send Email
Aug 29, 2008
11:47 pm
1084
On Fri, Aug 29, 2008 at 11:31 AM, CRANFORD, CHRIS ... I see what you want to do now. First, parse the expression without type info except at the leaves. Write...
Graham Toal
graham_toal
Offline Send Email
Aug 30, 2008
12:26 am
1085
... Doh! I just realised that CAST didn't mean a type cast, it meant an AST node. So you probably do need all those other node types after all :-) And what...
Graham Toal
graham_toal
Offline Send Email
Aug 30, 2008
12:29 am
1086
... Now, keep in mind that I also simply figured out stuff by experimantation, so my limited imagination may be speaking here, but since in my case the entire...
Uli Kusterer
witness_of_t...
Offline Send Email
Aug 31, 2008
10:52 am
1087
... Language design question: let's say you overload "+" as meaning string concatenation, but you also allow type coercion for numeric literals (which several...
Graham Toal
graham_toal
Offline Send Email
Aug 31, 2008
3:38 pm
1088
Greetings all - Thought I'd jump in and introduce myself and talk about one of the projects I'm currently working on. Graham suggested I join, so, hello ...
cneilbradley
Offline Send Email
Aug 31, 2008
11:00 pm
1089
... Welcome aboard, I see you found us OK! For folks who don't mix in those circles, Neil is well known in the emulation world for writing extremely efficient...
Graham Toal
graham_toal
Offline Send Email
Aug 31, 2008
11:12 pm
1090
... translation ... *BLUSH* ... Not really. Somewhere I found the happy medium between being sloppy and excessively conseravtive with memory. The vast majority...
cneilbradley
Offline Send Email
Sep 1, 2008
5:54 am
1091
I take it being a commercial thing we don't get to see any code? I'd be interested to see the byte code interpreter, or maybe some discussion of it. Do you do...
Tim
deltacentauri
Offline Send Email
Sep 1, 2008
8:41 pm
1092
Hey Tim, good to see you pop up again. How did the finals go? Done any work on your compiler since we heard from you last? (done very little myself, but...
Graham Toal
graham_toal
Offline Send Email
Sep 2, 2008
2:40 am
1093
... Definitely commercial, but it's my code and my license, so I can do with it what I so choose to. ;-) It's not far enough along to be of any appreciable IP,...
cneilbradley
Offline Send Email
Sep 2, 2008
6:19 am
1094
Hey guys, It's certainly been a while...I've been pretty busy lately, got a promotion and working a whole lot of hours(but earning lots of cash) anyways I...
timmeh@...
deltacentauri
Offline Send Email
Sep 2, 2008
8:36 am
1095
The compiler would permit "123" + "456" to be concatenated as "123456" but when the multiplication node is examined, it would throw a type mismatch exception...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
2:22 pm
1096
... Yes I can possibly post my code in a few days; I don't have a public place where I can make it accessible at the moment, sorry. ... So if my AST classes...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
2:51 pm
1097
I see what you want to do now. First, parse the expression without type info except at the leaves. Write a tree walker to traverse this AST top-down and insert...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
2:53 pm
1098
You mentioned visiting the operator nodes in your previous message, which got me thinking about several examples I've seen online. I've seen varying solutions...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
2:58 pm
1099
Uli ... That is precisely that I am considering at the moment. The type table manager class could allow me to dynamically register the language's primitive...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
9:26 pm
1100
Python has a nice idiom for number/string multiplication which you might like (I use it all the time) - ... 'abcabc' ... 'abcabc' ... you can come up with some...
Tim
deltacentauri
Offline Send Email
Sep 2, 2008
9:46 pm
1101
I never thought about that, which could prove useful in certain scenarios. ... [mailto:compilers101@yahoogroups.com] ... "123456" ... multiplied. ... this ... ...
CRANFORD, CHRIS
Chris.Cranford@...
Send Email
Sep 2, 2008
11:50 pm
1102
... the ... Hey Chris - Just wondering - why does it need to be dynamic? Are you creating new basic/fundamental types at runtime? Anyway, as yet another...
cneilbradley
Offline Send Email
Sep 3, 2008
2:31 am
1103
... The language I'm parsing uses '&' as the string concatenation operator, so this is an issue that doesn't come up in my particular case. But it's an...
Uli Kusterer
witness_of_t...
Offline Send Email
Sep 3, 2008
6:57 am
1104
... In my language, what I did was have one generic type that just said "object". It just knows how to query attributes and change them, how to call methods...
Uli Kusterer
witness_of_t...
Offline Send Email
Sep 3, 2008
7:23 am
1105
Found another C compiler today (which only appeared in Sourceforge a few months ago): http://sourceforge.net/projects/ucc It's not well documented online,...
Graham Toal
graham_toal
Offline Send Email
Sep 4, 2008
4:55 pm
1106
I found a little cluster of expression parsers at codeproject.com - basically the same sort of code that we discussed some months ago, although written up...
Graham Toal
graham_toal
Offline Send Email
Sep 5, 2008
2:23 am
1107
Well I started working on my compiler again....going down completely the wrong track, but it was interesting nonetheless. I decided to take a different tack to...
Tim Wakeham
deltacentauri
Offline Send Email
Sep 5, 2008
10:19 am
Messages 1078 - 1107 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