Ralf Hemmecke wrote:
>
> > Parser does not allow you
> > to use keyword in place where normal identfier is expected.
>
> I rather like the approach given here.
>
> http://www.aldor.org/docs/HTML/chap4.html#4
>
> The symbol # is an identifier, as are 0 and 1 and + and -, etc.
>
I do not see any
> There are also "symbolic"
> keywords (symbolic meaning that they allow special characters
> in their names), like '==', ':", ',', '+', '#' ... Keywords
> have special meaning to the parser.
OK.
> Parser does not allow you
> to use keyword in place where normal identfier is expected.
I rather l
Bill Page wrote:
> On Mon, Nov 23, 2009 at 12:39 PM, Waldek Hebisch wrote:
>
> What does it mean that "# is an operator"? Why does the spad parser
> treat # in a different way than any other library operation?
>
Parser have no idea what "library operation" means. Parser knows
about identifiers a
On Mon, Nov 23, 2009 at 12:39 PM, Waldek Hebisch wrote:
>
> Ralf Hemmecke wrote:
> > Waldek, I don't understand your argument. Both definitions should behave
> > in exactly the same way. #: List(?) -> Integer is a function. Since
> > function application binds relatively strong and is left associat
Ralf Hemmecke wrote:
> >> f l ==
> >> if one?(# l) then true
> >> else false
> >> -
> >> f l ==
> >> if one? # l then true
> >> else false
> >> -
>
> > I am not
>> f l ==
>> if one?(# l) then true
>> else false
>> -
>> f l ==
>> if one? # l then true
>> else false
>> -
> I am not sure if this is bug or deliberate restri
Martin Rubey wrote:
> -
> )abbrev package LENCHK LengthCheck
> LengthCheck(): with
> f: List Integer -> Boolean
> == add
>
> f l ==
> if one?(# l) then true
> else false
> -
>
> is
-
)abbrev package LENCHK LengthCheck
LengthCheck(): with
f: List Integer -> Boolean
== add
f l ==
if one?(# l) then true
else false
-
is OK,
-