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...
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...
... 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,...
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...
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@...
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@...
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@...
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@...
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@...
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...
I never thought about that, which could prove useful in certain scenarios. ... [mailto:compilers101@yahoogroups.com] ... "123456" ... multiplied. ... this ... ...
CRANFORD, CHRIS
Chris.Cranford@...
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...
... 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...
... 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...
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,...
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...
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, Some time ago I saw an interesting implementation of this, one which I plan to explore once I get some of the more basic compiler working to my desire. ...
CRANFORD, CHRIS
Chris.Cranford@...
Sep 5, 2008 1:50 pm
1109
I'm trying to figure out the "best" way of doing runtime arithmetic/logical operations in addition to type casting. Right now I have the following variable...
My first instinct would be to say "play to your strengths" - you know how to write emulators - this is just another emulator, except that the instruction set...
... Can you afford to promote all int types to either signed or unsigned long int? Then do your operations, and write the result back to the appropriate size...
... desired. ... at ... in terms ... possible ... subdividing them ... without ... you ... I had thought about that, too. It's not a 64 bit native machine, and...
... If the actual arithmetic operation is only 2X slower, that's only a factor in code generated by a real compiler where there is no decoding overhead per...
Hi Neil, ... I think you're targetting an ARM platform. If so and your core has no FPU, then you should probably avoid defaulting to float as you show here....
... I think the answer to his problem is to break it down in to 4 sequential steps so that the size is 12+18+12+12 rather than 12*18*12*12... Or look for a...
... in terms ... possible ... subdividing them ... without ... It's not defaulting to float. That happens to be handlers for some of the floating point...
Hey guys, I've been wondering lately how one goes about making a regex engine. I assume it's something like a compiler, certainly as far as lexing and parsing...
... The simplest way to look at the problem is that it is just a parser - a very simple parser where the tokens of the language being parsed are just single...