Permalink
Commits on Mar 21, 2016
  1. Fix a regex lexing bug

    erikd committed Mar 21, 2016
    Test added.
    
    Closes: #47
Commits on Mar 19, 2016
  1. Version 0.6.0.1

    erikd committed Mar 19, 2016
    * Add missing test files to cabal file.
Commits on Mar 18, 2016
  1. Version 0.6.0.0

    erikd committed Mar 18, 2016
  2. README.md: Add 'Two Versions' text

    erikd committed Mar 18, 2016
    And drop `Changes` text from bottom of file.
  3. Add tests for regex lexing bug

    erikd committed Mar 18, 2016
  4. Lexer.x: Fix regex lexing bug

    erikd committed Mar 18, 2016
    The simplest example of what was failing to compile was `/[/]/` where
    the forward slash in the middle was being incorrectly detected as the
    end of the regex.
    
    Closes: #44
  5. Lexer: Fix lexing of octal values

    erikd committed Mar 18, 2016
    Also clean up lexing of hexadecimal values and add tests for invalid
    octal and hexadecimal values.
  6. Lexer.x: Fix parsing of escaped quotes

    erikd committed Mar 18, 2016
    The existing lexer was failing to accept strings with escaped quotes
    like `"\""` and `'\''`.
  7. ParserMonad.hs: Whitespace

    erikd committed Mar 17, 2016
Commits on Mar 17, 2016
  1. Split up the testsuite a bit more

    erikd committed Mar 17, 2016
  2. Lexer.x: Two minor tweaks

    erikd committed Mar 17, 2016
    * Drop export of AlexPosn
    * Add unbox-strict-fields pragma
  3. Lexer.x: Whitespace

    erikd committed Mar 17, 2016
  4. Fix two hlint warnings

    erikd committed Mar 17, 2016
Commits on Mar 16, 2016
Commits on Aug 29, 2015
Commits on Aug 28, 2015
  1. Minify: More if/else wrangling

    erikd committed Aug 28, 2015
Commits on Aug 27, 2015
Commits on Aug 25, 2015
  1. Minify: Fix minify if/else/if problem

    erikd committed Aug 25, 2015
    This was also fixed in the old-ast branch as a result of ticket
    erikd/hjsmin#22 but the solution here is
    much cleaner.
Commits on Aug 22, 2015
  1. Minify: Fix string concat issue

    erikd committed Aug 22, 2015
    The string concat minify rule was not firing on some string concat
    opportunities.
  2. Minify: Collapse adjacent var/const declarations

    erikd committed Aug 21, 2015
    Variable and constant declarations like:
    
            var x=1;var y=2;
    
    now becomes:
    
            var x=1,y=2;
    
    and the same for const declarations. Interspersed var/const declarations
    are not handled yet.
Commits on Aug 17, 2015
  1. Rename runtests.hs -> testsuite.hs

    erikd committed Aug 17, 2015
    Also update the cabal file to match so that the compiled test suite
    binary is `dist/build/testsuite/testsuite` and update travis file.
  2. Makefile: Tweaks

    erikd committed Aug 17, 2015
Commits on Aug 15, 2015
  1. Minify: Another JSSwitch fix

    erikd committed Aug 15, 2015
  2. AST: Add bang patterns to all the constructors

    erikd committed Aug 15, 2015
    Found that the minifiaction processing was using an absurdly huge
    amount of memory. Minimising an 8 kilobyte JS file was comsuming a
    couple of hundred megabytes of RAM.
    
    Profiling showed that tree re-writing duing minification was generating
    way too many un-evaulated thunks. Adding BangPatterns to all the nodes
    of the AST constructors reduced memory consumption by over 200 times.
Commits on Aug 13, 2015
  1. Minify: Fix a string concat bug

    erikd committed Aug 13, 2015
    Caught a problem when concating strings containing escaped quotation
    characters. For now, just detect that and fall back to avoiding the
    concatenation.