kamil-kielczewski / small-jsfuck

Generate small jsf code
8 stars 1 forks source link

Design archtecture of future relase of compiler #11

Open kamil-kielczewski opened 4 years ago

kamil-kielczewski commented 4 years ago

In futre release user will:

  1. Put his code
  2. select to compile code using deprecated (small), partial-deprecated (medium), non-deprecated (bigest) version of decoder.
  3. small-jsf, depending on code size will choose method (base4, base8 and base9 - and maybe base 16)
  4. small-jsf wil use text statistics #10 to use shortest jsf representation for most popular baseX characters
  5. show output cod to user and allow to download as .js file

Compiler shoud be written in such way that replacing jsf-representation for decoder schould be automatic and easy (this is done for base8 here