I'm trying to write a BASIC compiler ... one that compiles a VB style BASIC into a pseudocode that can then be interpreted by my application.

My intention is (or was) to write 2 COMponents that could be 'plugged' into any application. One being the compiler component the other the interpreter.

Prior to compiling (or interpreting) anything both components are 'fed' a list of internal function declarations and it is these that the interpreter returns to the application which can then act on them accordingly.

Anyway ... it's only when you start to write these things that you realise how difficult it is. I'm not one to give up easily as I love a challenge ... but I've kind of hit a brick wall on this. It's easy to write a very simple complier ... but as soon as you try to write one for a language with any level of sophistication it becomes very difficult.

Does anyone know of any COMponents like the ones I have described that are in existence??

Cheers,
Mark.