[Gambas-devel] Improved gbs2

Benoit Minisini gambas at ...1...
Wed Nov 21 17:50:57 CET 2007


On mercredi 21 novembre 2007, Daniel Campos wrote:
> Hi:
>
> I've made a complete reimplementation of gbs2, the main features:
>
> -> It can detect and warn about syntax errors prior to invoke the compiler.
>
> -> It is able to redirect the errors from gbc2 to the right source
> script file in which the error was done, including the right line
> number.
>
> -> As the prior implementation it can use the "INCLUDE" keyword to
> include more script files, but here you can use "-i=file-to-include"
> too, so you can reimplement classes and launch the main script using
> them
>
> -> The implementation of a class with a given name can be divided in
> more than a file, the gbs2 program will join them, so you can
> reimplement methods including different files, or expand the
> capabilities of a class with new methods.
>
> I send the source code as well as an example with an error, now It is
> easy to find as you can detect the file and line number in which the
> problem exists.
>
> 1) Compile the gbs2 implementation, then put it into /usr/bin
> 2) Run the example: gbs2 program.g
> 3) QUIZ! Fix the error and then run it again
>
> Daniel

If you really want to analyze Gambas code, there are methods for that in the 
gb.eval component that avoid inventing the wheel again. But of course they 
are not really documented.

I will explain them, but not before next week.

Regards,

-- 
Benoit Minisini




More information about the Devel mailing list