Blitz Preprocessor Released As Open Source

Miscellaneous Forums/Blitz Showcase/Blitz Preprocessor Released As Open Source

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've recently been playing around with writing a pre-processor thingy for an IDE I want to write, but it's not got to too many features at the moment. #include <> is in, but that's about the only one at the moment.

At the moment I'm working on transforming something like this into working Blitz code:

Type Persom
    Field name$

    Person()
    Person(pName$)
    Output()
End Type

Function Person::Person()
    this.name$ = ""
End Function

Function Person::Person(pName$)
    this.name$ = pName$
End Function

Function Person::Output()
    Print "Name = " + this.name$
End Function

Person Ty = new Person("Ty")
Ty.Output()


At the moment I've got the functions sorted nicely, and it's just a case of getting the last 2 lines working. I already know how to do it (I think), so that's not too bad. I'm not too keen on the syntax (would prefer the function code inside the type definition), but I'm keeping it simple for now.