On 06/25/2010 05:13 PM, Waldek Hebisch wrote:
I propose the following changes to Spad systax:

1) Allow blocks in braces -- currently supported in interpreter.
This means that braces will no longer work for sets.

That sounds great. Thanks for working on this.
In fact, I'd even like nopile mode to be the default. :-)

3) Nopile mode for Spad parser: when in nopile mode parser will
require blocks in parenthesis or braces and semicolons to
separate statements.  By default parser will be in pile mode.

How can I switch to nopile for the whole .spad file?
Do you have similar things in mind as #pile and #endpile in Aldor?
http://www.aldor.org/docs/HTML/chap4.html

4) Underscore before letter will be significant in identifier
name.  That is 'important' and 'import_ant' will be
different identifiers.

At first I thought, it's bad to introduce an incompatible way to what Aldor has, but in some way, your idea is better. There are files in the Aldor library that use foo__bar names. That looks even uglier than just one underscore. In fact, I don't want to see underscores at all in identifiers unless they are necessary as in mod_+ .

The only question then is what happens later, when the accepted characterset for identifiers becomes unicode? For which characters will _ then be an escape character and for which not?

BTW, since you are working on the parser. Could you make +, *, etc. behave like identifiers if they are a first letter, i.e.

   *: (%, %) -> %

should work without writing _*.

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to