edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] showscripts()
Date: Wed, 20 Sep 2017 16:59:50 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LRH.2.03.1709201648350.12844@carhart.net> (raw)
In-Reply-To: <2032e756-5b8c-e525-804f-a54925daccfd@geoffair.info>



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

  parent reply	other threads:[~2017-09-20 23:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19  2:38 Karl Dahlke
2017-09-19 17:58 ` Geoff McLane
2017-09-19 19:31   ` Karl Dahlke
2017-09-20 23:32     ` Geoff McLane
2017-09-20 23:56       ` Dominique Martinet
2017-09-23 23:40         ` Kevin Carhart
2017-09-20 23:59       ` Kevin Carhart [this message]
2017-09-21  1:56       ` Karl Dahlke
2017-09-20 13:38   ` Karl Dahlke
2017-09-21  0:33     ` Geoff McLane
2018-01-30 15:41 Karl Dahlke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.03.1709201648350.12844@carhart.net \
    --to=kevin@carhart.net \
    --cc=edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).