On Sun, Jul 8, 2012 at 1:00 AM, David A. Wheeler <dwhee...@dwheeler.com> wrote:
>> > 2.  It can be used to highlight indentation for whatever purpose that may
>> > serve.
>>
>> To illustrate #2, consider the following contrivedly complicated code
>> (but I think you'd end up with similarly complicated code after
>> developing a project for a while).
>>
>> define foo(x)
>>   define bar(y z)
>>   . let
>>   .   \
>>   .   . quux  frobnicate(y z)
>>   .   . quuux frobnicate(z y)
>
> To clarify, the rule you're thinking is:
> "When processing indentation, beginning at the left-hand-side, a period is 
> equivalent to a space character until the first character that is not a 
> period, blank, or tab."
>
> I think that's a good (experimental) rule.

Yes, I think this is a good rule.

With ". in indent = SPACE" we can draw simple stuff in the indent space:

define foo(x)
 ...define bar(y)
 .      let
 .       ...\
 .       .      v {x + y}
 .       ...    w {x - y}
 ...     {v * w}
    bar

Okay, I'll look at implementing it in the parser spec.

Sincerely,
AmkG

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to