[Prev][Next][Index]
Re: (un)parser: string token concatenation broken
- From: Beata Winnicka <bfatyga@slab.extreme.indiana.edu>
- Date: Wed, 3 May 95 14:57:53 -0500
- To: Lars Thomas Hansen <lth@cs.uoregon.edu>
- Subject: Re: (un)parser: string token concatenation broken
- Cc: sage-bugs@rainier.extreme.indiana.edu
- Sender: owner-sage-bugs@extreme.indiana.edu
> Consider the following valid statement:
>
> printf( "this is a " "test" ); // no comma!
>
> When parsed and unparsed, it becomes
>
> printf( "this is a " );
>
> i.e., string token concatenation does not appear to
> work.
>
> --lars
>
Fixed, I think. The example above now unparses to:
printf("this is a test");
(i.e., concatenation is done by the parser.)
Another alternative would be to store a linked list of all the
strings in the .dep file and unparse them to:
printf( "this is a " "test" );
However, this would require more extensive changes to the whole Sage
system, because I would need to add a new field to a STRING_VAL
expression. But I can do this if anybody feels that this is important
enough. Let me know, --Beata