But first, if the c++ parser of C::B is not improved (or replaced)...
But first, if the c++ parser of C::B is not improved (or replaced)...
8) MUAHAHAHAHAHAHA!
*Goes back to his underground lab*
Sorry, I forgot, where is it?
Michael: How about making a simple wxwidgets project (with a text input box etc.) that uses this parser?
It'd be a great help for us.
Question :
- is there a way (by some wx Class ?) to get the entire content of a file (without doing ourself a file open, go to end, tell, allocate, read , ...) ?
I tried to look int the CB code to see how an cbEditor or EditorBase gets it's content but it seems this is hiding itself frome me (or I am looking in the wrong places ;-) ).
Lieven
wxFile f("somefile.txt");
wxString contents;
cbRead(f, contents); // cbRead is in sdk/globals.h
... to provide a C::B console project of the "Mini C++ interpreter" :). The code is relatively well commented and it could be useful for a first look. ...
This evening when I will have more free time, I will provide a better overview of the parser (wxWidgets project) and post it tomorrow (I do not have Internet at home :().
I have worked a bit more in the parser C++ of the Mini C++ interpreter.