From: Brian I. <in...@tt...> - 2003-01-02 19:09:24
|
On 02/01/03 04:19 -0800, Rich Morin wrote: > In Perl, this would look something like: > > [ 'implies', > [ 'and', > [ 'isa', '?TRANSFER', 'TransferringPossession' ], > [ 'fromPossessor', '?TRANSFER', '?FROM' ] ], > [ 'isa', '?FROM', 'SocialBeing' ] ] > > but I'd like to be able to encode it using only dashes and indentation > > How _should_ these be written? Let the computer (read Dumper) do the work. If you know Perl, you probably have YAML.pm. If you have YAML.pm you must have ysh. (macingy) ingy /Users/ingy > ysh Welcome to the YAML Test Shell. Type ':help' for more information. ysh > ; perl> [ 'implies', perl> [ 'and', perl> [ 'isa', '?TRANSFER', 'TransferringPossession' ], perl> [ 'fromPossessor', '?TRANSFER', '?FROM' ] ], perl> [ 'isa', '?FROM', 'SocialBeing' ] ] perl> ; --- - implies - - and - - isa - ?TRANSFER - TransferringPossession - - fromPossessor - ?TRANSFER - ?FROM - - isa - ?FROM - SocialBeing ysh > Easy, no? Cheers, Brian |