MESSAGE
DATE | 2016-01-24 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Learn] Fwd: Re: basics ABC
|
From learn-bounces-at-nylxs.com Sun Jan 24 23:10:42 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id DD76016112C; Sun, 24 Jan 2016 23:10:41 -0500 (EST) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from [10.0.0.19] (stat13.mrbrklyn.com [10.0.0.19]) by mrbrklyn.com (Postfix) with ESMTP id 874C216112B for ; Sun, 24 Jan 2016 22:02:24 -0500 (EST) References: <87vb6iz8vn.fsf-at-lydrik.home.lan> To: learn-at-nylxs.com From: Ruben Safir X-Forwarded-Message-Id: <87vb6iz8vn.fsf-at-lydrik.home.lan> Message-ID: <56A59040.7070009-at-mrbrklyn.com> Date: Sun, 24 Jan 2016 22:02:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <87vb6iz8vn.fsf-at-lydrik.home.lan> Content-Type: multipart/mixed; boundary="------------080109050404070206050206" Subject: [Learn] Fwd: Re: basics ABC X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
This is a multi-part message in MIME format. --------------080109050404070206050206 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit
-------- Forwarded Message -------- From: 38 2016 <> X-Account-Key: account1 X-UIDL: 00001727561d71fe X-Mozilla-Status: 0013 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: Return-Path: X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from B-EXH-EDGE1.liunet.edu (b-edge1.smtp.liu.edu [148.4.248.206]) by mrbrklyn.com (Postfix) with ESMTP id A9ECF16112B for ; Sun, 24 Jan 2016 21:33:00 -0500 (EST) Received: from B-EXH-3.liunet.edu (148.4.250.212) by B-EXH-EDGE1.liunet.edu (148.4.248.206) with Microsoft SMTP Server (TLS) id 14.3.210.2; Sun, 24 Jan 2016 21:32:57 -0500 Received: from localhost (70.199.75.253) by B-EXH-3.liunet.edu (148.4.250.212) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Sun, 24 Jan 2016 21:32:58 -0500 From: Christopher League To: Ruben Safir Subject: Re: basics ABC In-Reply-To: <56A586EB.5090107-at-mrbrklyn.com> References: <56A49DA4.2050506-at-mrbrklyn.com> <8737tn2hw5.fsf-at-lydrik.home.lan> <56A4F136.1030907-at-mrbrklyn.com> <87lh7e214l.fsf-at-lydrik.home.lan> <56A56A89.6070201-at-mrbrklyn.com> <874me21ohi.fsf-at-lydrik.home.lan> <56A57E64.3030708-at-mrbrklyn.com> <871t961ktr.fsf-at-lydrik.home.lan> <56A586EB.5090107-at-mrbrklyn.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Sun, 24 Jan 2016 21:32:44 -0500 Message-ID: <87vb6iz8vn.fsf-at-lydrik.home.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Originating-IP: [70.199.75.253] X-ClientProxiedBy: U-EXH-CAS.liunet.edu (148.4.184.26) To B-EXH-3.liunet.edu (148.4.250.212)
NICE...! You just came up with a test case that broke *my* solution. I failed to consider that. So I just pushed two new tests:
-at-Test public void testCommentDoubleParen() { assertChanged( "Hello ((*comment*))okay", "Hello ()okay" ); }
-at-Test public void testCommentDoubleStar() { assertChanged( "Hello (*comment**)okay", "Hello okay" ); }
and now I'll be fixing my solution.
But yes it seems like you're on the right track... multiple open-parens should stay in the same state.
CL
Ruben Safir writes:
> On 01/24/2016 08:58 PM, Christopher League wrote: >> As for as supporting another `/` in the midst of a comment, I think >> that's handled by the outgoing "other" from state 3. So state 3 >> represents that we're in the body of the comment. The only way to get >> out of that is by finding a `*` -- anything else stays in state 3. > > > right but the problem is in state Two. In State two we are NOT yet in > the body of the comment. we just have a single / which might be part of > a comment delimiter, or might not be, depending on what is to follow. > > Now, if I get an OTHER which is not a * and not a / (if other is defined > as such), then fine, back to stage 1. If we get a * - Up to stage 3. > BUT, if we get a another /, we should not be at state 1, but still at > state two! > > Nuh? > > In L1 we are looping 1's in stage 1. I'm thinking I have to loop ( at > stage 2 and I'm not sure what is the difference. > > > > -- > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > http://www.nylxs.com - Leadership Development in Free Software > http://www2.mrbrklyn.com/resources - Unpublished Archive > http://www.coinhangout.com - coins! > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013
--------------080109050404070206050206 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc"
LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRRWNC QUVCQ0FBR0JRSldwWWxNQUFvSkVHdUxzejFQTWJDTGJOQUgvMzRsd1l3dFN6UHdPcmsxRy9o OGxaWFUKOFJEaW0yRXd2N1NZdnlnbTRubjRiTVIyOGdOVVFrc1pycFM2SzJPaDZRUGpzR1FG UTIxM3JVdEpNS0EwcmIyRApiL3hCUHF1RWo3K3owbitHY29YbENidUJHOEhVaEV1QzN5MzNa eGxub0NtWU8vc3F0YkZNbmpTNjUvWCtJZE56CjE5ZW9SZ1Qvb1pIblhaU0dNaGx3dlVRSUdy L0xTWGtBZkFKaUhoSHFYVGltYW5FdUpWcEVNWC93QzlTaTZFUlEKdFAraHFTMWxTZ0NqQmg3 VHVmbTNyYUZYQmNKS0ZXRkdPNk1rb0xnQmVZdm5abW9sSlQwNEZxRFdiREhsUHh3ZwpBRzM3 d2NWVHBHdkZyQi8xb05WdENtbVZUdExwY2JoOWJiN1JwR0ZNNVV2U2phNFR4U1VtN1Q4OEwr SWkxRjA9Cj1rV0tWCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQo= --------------080109050404070206050206 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
--------------080109050404070206050206--
|
|