minor formal problem on wrong parenthesys nesting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

minor formal problem on wrong parenthesys nesting

Bèrto ëd Sèra
Hi!

if when writing the code for a class you make a mistake and end up
with [ instead of ] you get

gst: gst-parse.c:201: lex_lookahead: Assertion `p->la_size == 0 ||
token (p, p->la_size - 1) != (-1)' failed.
/home/bertodsera/.st/Ambaradan-Application.star#VFS.ZipFile/Widgets/SelectableTreeElement.st:62:
Aborted
/home/bertodsera/.st/Ambaradan-Application.star#VFS.ZipFile/Widgets/SelectableTreeElement.st:62:
Error occurred while not in byte code interpreter!!
/usr/local/bin/../lib/libgst.so.7[0x7f7adf24b047]
/lib64/libc.so.6[0x37056332f0]
/lib64/libc.so.6(gsignal+0x35)[0x3705633275]
/lib64/libc.so.6(abort+0x175)[0x3705634a55]
/lib64/libc.so.6(__assert_fail+0xee)[0x370562c2be]
/usr/local/bin/../lib/libgst.so.7[0x7f7adf20a254]
/usr/local/bin/../lib/libgst.so.7[0x7f7adf20ab5c]
/usr/local/bin/../lib/libgst.so.7[0x7f7adf20b004]
/usr/local/bin/../lib/libgst.so.7[0x7f7adf20b308]
/usr/local/bin/../lib/libgst.so.7[0x7f7adf20b836]

It would probably more developer-friendly if it simply said that the
source file has a nesting problem :)

Bèrto


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: minor formal problem on wrong parenthesys nesting

Paolo Bonzini-2
On 05/10/2010 06:56 AM, Bèrto ëd Sèra wrote:
> if when writing the code for a class you make a mistake and end up
> with [ instead of ] you get
>
> gst: gst-parse.c:201: lex_lookahead: Assertion `p->la_size == 0 ||
> token (p, p->la_size - 1) != (-1)' failed.

hmmm

st> Object subclass: B [
st>     a [
st>     [
st> ]
stdin:5: parse error, expected ']'

st> Object subclass: B [
st> [
stdin:7: parse error, expected ']'


Can you attach a testcase? You can send it privately if you prefer.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk