From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.61; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 488D077DE5 for ; Wed, 20 Sep 2017 16:58:27 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 0E8695F5 for ; Wed, 20 Sep 2017 16:59:52 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v8KNxo9d023535 for ; Wed, 20 Sep 2017 16:59:50 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v8KNxo4T023532 for ; Wed, 20 Sep 2017 16:59:50 -0700 Date: Wed, 20 Sep 2017 16:59:50 -0700 (PDT) From: Kevin Carhart To: edbrowse-dev@lists.the-brannons.com In-Reply-To: <2032e756-5b8c-e525-804f-a54925daccfd@geoffair.info> Message-ID: References: <20170818223842.eklhad@comcast.net> <50ddcbc0-436d-cd03-552a-d0f245b5a4d4@geoffair.info> <20170819153135.eklhad@comcast.net> <2032e756-5b8c-e525-804f-a54925daccfd@geoffair.info> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] showscripts() X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 23:58:27 -0000 Hi Geoff We're using two javascript libraries in rapid succession to demin. They're located in third.js and Karl's code then addresses them. The first one is called esprima, and it turns javascript into an abstract syntax tree. The second is called escodegen, which does the reverse, turns an abstract syntax tree into JS. But it just so happens that escodegen demins what it converts! So in a way we are using a sledgehammer to bonk a mosquito since it's a lot of code. But it does amount to nice demin'ed javascript at the end of the day. Thank you Karl! K On Thu, 21 Sep 2017, Geoff McLane wrote: > Hi Karl, > > Ok, using strstrCI compiled fine in Windows... thanks... > > Now if I could find the actual code that demin's the code... > > I found html.c[543], that does if (demin) run_function_onearg(cf->winobj, > "ed$demin", t->jv);, but still looking for the code... > > I tried running - > $ edbrowse http://www.nasa.gov, and get - > 15852 > 1839 > lines 49 through 50 have been added > > But then when I type showscipts(), I just get a ? > > Likewise typing dumptree() gets me another ? > > Obviously missing something here... sorry for being such a klutz... any help > appreciated... > > Regards, > Geoff. > > _______________________________________________ > Edbrowse-dev mailing list > Edbrowse-dev@lists.the-brannons.com > http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists