Permalink
Commits on Apr 13, 2017
  1. Fixes #284 - Loops/comprehensions over decreasing ranges don't work (#…

    basicer committed with michaelficarra Apr 13, 2017
    …365)
    
    * Fixes #284 - Loops/comprehensions over decreasing ranges don't work
    
    * - Fix code formatting
    - Add more unit tests for decreasing numeric ranges
Commits on Jun 23, 2016
Commits on Dec 1, 2015
  1. Merge pull request #357 from ReadmeCritic/master

    michaelficarra committed Dec 1, 2015
    Update README URLs based on HTTP redirects
Commits on Sep 23, 2015
  1. Merge pull request #353 from eventualbuddha/fix-error-position-reporting

    michaelficarra committed Sep 23, 2015
    Fix the reported line/column for syntax errors.
  2. Fix the reported line/column for syntax errors.

    eventualbuddha committed Sep 23, 2015
    As reported at decaffeinate/decaffeinate#54, CoffeeScriptRedux syntax
    errors always point to line 1 column 1. This is very annoying when
    trying to figure out what part of the file it actually can’t parse.
    This updates the peg override to match the new signature for
    `peg$computePosDetails` which now takes a `pos` argument.
Commits on Sep 12, 2015
  1. Merge pull request #352 from eventualbuddha/fix-program-name-in-help

    michaelficarra committed Sep 12, 2015
    Fix the value of `$0` in the cli module.
  2. Fix the value of `$0` in the cli module.

    eventualbuddha committed Sep 12, 2015
    `process.argv[0]` is likely never going to equal exactly “node” since
    it should be the full path to the node binary running the program.
    Therefore we need to check that the basename is “node” and move on to
    `argv[1]` if that’s the case.
Commits on May 29, 2015
  1. Merge pull request #339 from eventualbuddha/fix-offsets

    michaelficarra committed May 29, 2015
    Fix offset calculation for parsed nodes.
  2. Merge pull request #350 from ef4/toplevel-gensyms

    michaelficarra committed May 29, 2015
    Fix gensym leak at toplevel
Commits on May 28, 2015
  1. Fix gensym leak at toplevel

    ef4 committed May 28, 2015
    This closes #251.
  2. Merge pull request #349 from ef4/fix-duplicate-vars

    michaelficarra committed May 28, 2015
    Fix duplicate vars at top level
  3. Fix duplicate vars at top level

    ef4 committed May 28, 2015
    To see the problem this patch fixes, look at the first line of
    lib/cli.js:
    
    ```js
    var $0, $0, ...
    ```
    
    The Program node handler was attempting to deduplicate with `nub`, but
    doing so over a list of JS.Identifiers, not a list of plain strings.
    
    Since most callers of `declarationsNeededRecursive` are more interested
    in the set of names than the identifier nodes, I changed it to do that.
  4. Merge pull request #348 from ef4/map-child-nodes

    michaelficarra committed May 28, 2015
    Refactor child mapping & scope boundary detection
  5. Refactor child mapping & scope boundary detection

    ef4 committed May 28, 2015
    This is a refactor with no intended semantic changes. It addresses some
    "TODO" comments in the source by creating a generic fmap-like facility
    for mapping over child nodes.
    
    I also factored out scope boundary detection. In addition to helping
    readability, this makes it easier to safely introduce future
    constructs (like ES6 arrow function expressions) that are also scope
    boundaries.
Commits on Apr 4, 2015
  1. Merge pull request #341 from mariusschulz/patch-1

    michaelficarra committed Apr 4, 2015
    Corrects file extension
Commits on Apr 3, 2015
  1. Corrects file extension

    mariusschulz committed Apr 3, 2015
Commits on Jan 22, 2015
  1. Merge pull request #340 from eventualbuddha/fix-empty-interpolation-p…

    michaelficarra committed Jan 22, 2015
    …refix-raw
    
    Ensure string interpolations with empty prefixes have raw values.
  2. Ensure string interpolations with empty prefixes have raw values.

    eventualbuddha committed Jan 22, 2015
    Without this the string node that is the left of the ConcatOp has no
    raw value, which is unexpected when parsing with `raw: true`.
  3. Fix offset calculation for parsed nodes.

    eventualbuddha committed Jan 22, 2015
    Closes #335.
    
    This builds on #117 by ensuring that not only are line & column
    information corrected to account for control characters inserted by the
    preprocessor, but offset information is too. Unfortunately this expands
    the hack that overrides the code generated by PEGjs, but it seemed the
    cleanest and most performant way to solve the problem.
Commits on Jan 21, 2015
  1. Merge pull request #337 from eventualbuddha/fix-string-interpolation-raw

    michaelficarra committed Jan 21, 2015
    Ensure string interpolation segments have `raw' values.
Commits on Aug 23, 2014
  1. Merge pull request #321 from lydell/pegcoffee

    lydell committed Aug 23, 2014
    Convert grammar.pegjs into grammar.pegcoffee
Commits on Aug 20, 2014
  1. Move from pegjs-coffee-plugin to pegjs-each-code

    lydell committed Aug 1, 2014
    - Self-hosted coffee compilation instead of dependency on (old version
      of) jashkenas/coffee-script.
    - No more `@variable`s for global variables and helper functions, which
      involves having to use `=>` instead of `->` sometimes. Now, just use
      `variable` like in plain JavaScript.
    - It is now possible to do `a:Foo? { a ?= []; rp a}` as expected.
    - Better error messages. Partly because CSR has better error messages
      than jashkenas/coffee-script@1.6.3, partly because you also get to
      know in which rule the code resides. The error messages will get line
      and column numbers in the .pegcoffee file as soon as
      lydell/pegjs-each-code#1 is resolved.
    - No more weird hacks in the initializer.
    - Note: lib/parser.js gets pretty bloated because of #323.
Commits on Jul 8, 2014
Commits on Jul 6, 2014
  1. Merge pull request #318 from lydell/pegjs-0.8.0

    michaelficarra committed Jul 6, 2014
    Fix #241, #133: Update to pegjs 0.8.0
Commits on Mar 22, 2014
Commits on Mar 14, 2014
Commits on Feb 23, 2014