[Gambas-devel] Improved gbs2

Daniel Campos dcamposf at ...176...
Wed Nov 21 17:18:27 CET 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbs2-1.9.91.tar.gz
Type: application/x-gzip
Size: 22863 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20071121/a75aea8b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.tar.gz
Type: application/x-gzip
Size: 673 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20071121/a75aea8b/attachment-0001.bin>


More information about the Devel mailing list