Waldek,

The result is 16, if I put that in an .input file and read that file.
But, honestly, I wouldn't have expected that.

Something like

foo
    foo    <-- strange that this works here.
  foo
    foo 1

looks wrong to me. In particular the second foo.

I would be in favour of NOT accepting that input.

As a (human) compiler, I would parse that as follows.

foo {
    foo
    }
  {
  foo
    {
    foo 1
    }
  }

(Braces as in Aldor)

That would mean foo {foo} {foo {foo 1}} which looks wrong to my eyes.
I never understood the piling rules and, in fact, I am rather unwilling to learn them. Waldek's example looks unintuitive to me.

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