Go read this announcement... http://webkit.org/blog/189/announcing-squirrelfish/ Not for how they're doing it now, but for how it was done before. Unbelievably...
... The TADS text adventure development does this. It has certain initialization methods that it will run during compilation, like constructors of static...
Hi gang! Life is finally settling back down for me so I can start playing with my mini compiler. I'm trying to pickup the pieces from where I left off and our...
CRANFORD, CHRIS
Chris.Cranford@...
Jul 23, 2008 8:19 pm
1076
... The generalisation is a 'procedure call' node, with "print" being the name of the procedure, which is one of the parameters. You may or may not want to...
The way I worked this was to have the print statement create a procedure node as Graham suggested. Each proc node has the option to be an implicit or explicit...
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@...
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@...
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@...
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,...
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@...
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...
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...
... 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...
... 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...
... Language design question: let's say you overload "+" as meaning string concatenation, but you also allow type coercion for numeric literals (which several...
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 ...
... 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...
... translation ... *BLUSH* ... Not really. Somewhere I found the happy medium between being sloppy and excessively conseravtive with memory. The vast majority...
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...