What does "#| ... |#" mean?

View: New views
3 Messages — Rating Filter:   Alert me  

What does "#| ... |#" mean?

by Rich Morin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The aircraft.plm example contains the code:

  #|
  (defrelation Number-Of-Ac
    :domain Aircraft
    :range Integer
    :is (:satisfies (?X ?Y)
      (Sum
      (:Collect ?Z (:Exists ?W (Fleet-Size ?W ?X ?Z))) ?Y))
    :characteristics (:single-valued :read-only))
  |#

I don't see "#| ... |#" mentioned in the PowerLoom Grammar.
Could someone please explain what it means?

-r
--
http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     rdm@...
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development
_______________________________________________
powerloom-forum mailing list
powerloom-forum@...
http://mailman.isi.edu/mailman/listinfo/powerloom-forum

Re: What does "#| ... |#" mean?

by Andras Simon-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Sat, 28 Jun 2008, Rich Morin wrote:

> The aircraft.plm example contains the code:
>
>  #|
>  (defrelation Number-Of-Ac
>    :domain Aircraft
>    :range Integer
>    :is (:satisfies (?X ?Y)
>      (Sum
>      (:Collect ?Z (:Exists ?W (Fleet-Size ?W ?X ?Z))) ?Y))
>    :characteristics (:single-valued :read-only))
>  |#
>
> I don't see "#| ... |#" mentioned in the PowerLoom Grammar.
> Could someone please explain what it means?

Comment, probably. See
http://www.lispworks.com/documentation/HyperSpec/Body/02_dhs.htm

Andras
_______________________________________________
powerloom-forum mailing list
powerloom-forum@...
http://mailman.isi.edu/mailman/listinfo/powerloom-forum

Re: What does "#| ... |#" mean?

by Andre Valente-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, this is the CommonLisp multi-line comment syntax.  You can also use
a semicolon to create a comment in the remainder of a single line.

Stella and PowerLoom adopt a lot of elements from the CommonLisp syntax.

Cheers,
Andre

Andras Simon wrote:

>
> On Sat, 28 Jun 2008, Rich Morin wrote:
>
>> The aircraft.plm example contains the code:
>>
>>  #|
>>  (defrelation Number-Of-Ac
>>    :domain Aircraft
>>    :range Integer
>>    :is (:satisfies (?X ?Y)
>>      (Sum
>>      (:Collect ?Z (:Exists ?W (Fleet-Size ?W ?X ?Z))) ?Y))
>>    :characteristics (:single-valued :read-only))
>>  |#
>>
>> I don't see "#| ... |#" mentioned in the PowerLoom Grammar.
>> Could someone please explain what it means?
>
> Comment, probably. See
> http://www.lispworks.com/documentation/HyperSpec/Body/02_dhs.htm
>
> Andras
> _______________________________________________
> powerloom-forum mailing list
> powerloom-forum@...
> http://mailman.isi.edu/mailman/listinfo/powerloom-forum
_______________________________________________
powerloom-forum mailing list
powerloom-forum@...
http://mailman.isi.edu/mailman/listinfo/powerloom-forum