I've done the code for the first tutorial on this. Thought I'd upload it early if anyone wants a look. One change is that I've used C++ rather than C*. All the code is MIT/X11 licensed (basically do what you want but don't remove the copyright notice, see the files for more details). All it does so far is take a series of identifiers, integers and some operators and tokenises the stream. All the testing has been done on x86/Linux (Ubuntu specifically). There's no symbol table and no parsing as of yet.
The tutorial to go with this will follow at some point.
*I created a dynamic string struct and library for C but it still didn't look very nice. C++ streams are a god send.
//edit - first version had some bugs. I've fixed it and uploaded.//
__________________
Currently bemused by: LLVM.
Last edited by G_Morgan; 02-10-2008 at 09:00 AM.
|