I would appreciate your comments regarding the following simple interpreter. I would like to grow this into a simple programming language, but before I get...
... I think it looks good. Reminds me a bit of QBasic, which I always liked (I think a lot of problems people associate with it are actually due to the IDE...
... (and procedures!) It's a good piece of demonstration code - not cluttered with the sort of complexities you'll need for a real compiler, and if you were...
... I'm trying to decide which to implement: '\n' as in C, or add an explicit println, as in Pascal: C-style: print "Hello, World!\n" Pascal-style: println...
... Then why not include the line-break literally in the string? Like this: print "line one line two" ... Something that not only reports on which line the...
Rainer Thonnes
rainer@...
Dec 22, 2003 6:40 pm
256
... Because it just seems wrong? I've never seen anything like this before, hence my initial reaction. I'll have to think on it a while. Thanks for the...
... Good. So your hash table is, I take it, nothing but an array of pointers to chainable token decriptors, as opposed to an array of token descriptors which...
Rainer Thonnes
rainer@...
Dec 22, 2003 10:42 pm
258
Hey Rainer, didn't your write some trie stuff once for a spelling checker? Tries are faster, smaller, and more easily expandable than hash tables. Dunno why...
... Yes but not for a spelling checker, and I got the idea from some natural language processing stuff Hamish had written (to help identify geographical origin...
Rainer Thonnes
rainer@...
Dec 23, 2003 12:24 am
261
... Yes, but not necessarily. If your language has the property that key words are distinguished syntactically from identifiers (such as being enclosed in...
Rainer Thonnes
rainer@...
Dec 23, 2003 1:25 am
262
... That gives me an idea that I haven't seen in any language that I know of - modify the parser to insert the name tables as a parsable item so that they...
... I wrote trie and hash test programs, ran them each multiple times, and took the average results. In my implementations, hash tables are smaller and faster...
... You wouldn't be biased, would you? Your trie implementation would seem to have been written deliberately badly. :-) ... I notice that your trie...
Rainer Thonnes
rainer@...
Dec 24, 2003 11:40 am
265
... I'm cut to the quick. If not for your ":-)", I think I would be really offended <grin>. Seriously, I deliberately tried to make both of them as good as ...
... It should not be difficult when using your scheme of two pointers per node. I do remember it being quite tricky with my single pointer scheme, when I used...
Rainer Thonnes
rainer@...
Dec 25, 2003 12:21 pm
267
... I don't have your email address (I've been using the groups web interface, which hides the email address). If you'll email me (ed underscore davis2 at...
... Andrew Appel & Guy Jacobson - you can find their paper on my Scrabble page: http://www.gtoal.com/wordgames/scrabble.html I've written quite a bit of...
Because of the high overlap I'm posting this to compilers101 and staticrecompilers as well. But please followup to dynarec. ... Hello guys, I'm bored out of...
... When I use tries I never delete. I use tries in the lexical analyser to map strings to integers and then use other structures for the symbol table. ... -- ...
Paul Cockshott
wpc@...
Jan 5, 2004 9:18 am
271
hi friends, my name is abhy doing mtech at nit,these year we havea course called compliler design,i had undergone this course in my grauadion but up to a...
Hi All, Iam a student and iam trying to develop a compiler for C++ like language which compiles the Hll to MSIL of the dotNET framework. I have the code of a...
... If you have an existing compiler and you want to make small changes to the grammar, it can probably be done without any deep understanding of the compiler;...
... called compliler design,i had undergone this course in my grauadion but up to a little margin,can anybody suggest me a book or any additional material to...
... Here are some that I like: Compiler Construction, by Niklaus Wirth. Only 176 pages. Light on theory, but very practical. If you liked "Algorithms + Data...
I just bounced a post that was an obvious "please do my homework for me" request. I have let the last few posts like this slip through, but from now on I will...
Hey all, Some of you may have seen this already (a search of the archive didn't turn up any references), but I thought it might be worth mentioning since there...
Thanks for the link. I had a look at that parser. It's quite nice. ... However it has the same mistake as yacc. No context-sensitive tokenising. Means that...
Hey guys, For a couple of years now I've been working on byte code compilers and ... With what I now know, I thought it was time for me to put together a ...