Permalink
Switch branches/tags
Nothing to show
Commits on May 13, 2014
  1. Update README.mdown

    jamesgpearce committed May 13, 2014
  2. Update README.mdown

    jamesgpearce committed May 13, 2014
Commits on Apr 23, 2012
  1. Merge pull request #4 from oyvindkinsey/patch2

    This adds support for applying overlapping patches to the same AST witho...
    Ryan Patterson committed Apr 23, 2012
  2. Merge pull request #2 from oyvindkinsey/patch1

    Fixes a bug that would otherwise occur if the node was null.
    Ryan Patterson committed Apr 23, 2012
Commits on Apr 21, 2012
  1. This adds support for applying overlapping patches to the same AST wi…

    …thout having to do multiple passes on the entire file.
    oyvindkinsey committed Apr 21, 2012
Commits on Mar 14, 2012
  1. Merge pull request #1 from facebook/965735_support_with_node

    Added support of "with "statement.
    Ryan Patterson committed Mar 14, 2012
  2. Added support of "with "statement.

    Added spec test for the "with" node.
    DmitrySoshnikov committed Mar 13, 2012
Commits on Feb 25, 2012
  1. Add better error reporting for match scripts

    Use eval sourceURL, so stakc traces have real file names and line numbers, and
    add the filename that was being matched when a matcher throws and error.
    Ryan Patterson committed Feb 25, 2012
Commits on Feb 24, 2012
  1. Fix output bug for jsgrep

    Add some specs to verify token offsets
    Bump version
    Ryan Patterson committed Feb 24, 2012
  2. Bump version to 1.0.0

    Ryan Patterson committed Feb 24, 2012
  3. Minor cleanup

    Commenting, rename variables, add a spec
    Ryan Patterson committed Feb 24, 2012
  4. Real exception types

    Better debugging information including stack traces, nicer formatting, and
    nested exceptions.
    Ryan Patterson committed Feb 23, 2012
  5. Fix patcher for multiple source modifications

    The old method made the assumption that patches would be applied in source
    order, which shouldn't be a restriction.
    
    Also fixes a bug with replacing property initializers by mangling the AST. Adds
    some test cases to verify that the patcher works.
    Ryan Patterson committed Feb 23, 2012
Commits on Feb 1, 2012
  1. Getter/setter support

    Untested, but I read Narcissus so I suspect it's accurate.
    Ryan Patterson committed Feb 1, 2012
Commits on Jan 24, 2012
  1. Add support for debugger statement

    In patterns and source code.
    Ryan Patterson committed Jan 24, 2012
Commits on Jan 23, 2012
  1. Fix installation remote

    It was on my private repo
    Ryan Patterson committed Jan 23, 2012
  2. Clean up README

    Removes a bunch of the examples to make it a shorter intro blurb.
    Ryan Patterson committed Jan 23, 2012
  3. Bump version, make public

    Ryan Patterson committed Jan 23, 2012
  4. Switch to submodule for narcissus

    This should hopefully make things easier for others..
    Ryan Patterson committed Jan 23, 2012
  5. License headers

    Everything is Apache!
    Ryan Patterson committed Jan 23, 2012
Commits on Jan 22, 2012
  1. Documentation

    Adds comments to most of jsgreps exported functions.
    Ryan Patterson committed Jan 22, 2012
Commits on Jan 16, 2012
  1. jspatch refactor for programmability

    Factor out the getPatternFromPatch and getPatchedCode, useful for integration
    with other tools.
    Ryan Patterson committed Jan 16, 2012
  2. Cleanup, precaution, bug

    Bug: it was using node value, so replacing a string with a different one would
    remove the quotes.
    Precaution: make sure the value of the node matches, in addition to the type.
    Ryan Patterson committed Jan 16, 2012
  3. Added in-place mode

    Run the program, verify the patch, run again with -i
    Ryan Patterson committed Jan 16, 2012
Commits on Jan 13, 2012
  1. Make nice npm package

    Now it's a well-formed npm package, better organization, etc. Also --version
    flags.
    Ryan Patterson committed Jan 13, 2012
Commits on Jan 12, 2012
  1. Support if in patterns

    Added support for if in patterns, fixed some whitespace errors in generated
    patches, added some more demos.
    Ryan Patterson committed Jan 12, 2012
  2. Improved patch file processing

    Now works on the token level after matching on the AST level. Needs testing!
    Ryan Patterson committed Jan 12, 2012
  3. Sed mode for jspatch

    Presently, sed mode is the best way to use this tool, because the patch file
    format is dumb.
    Ryan Patterson committed Jan 12, 2012
Commits on Jan 11, 2012
  1. jspatch custom patch format

    Lets you write pseudo-patch-files, similar to those that spatch accepts.
    Ryan Patterson committed Jan 11, 2012
  2. Working jspatch!

    jspatch works and emits diff files.
    Ryan Patterson committed Jan 11, 2012
  3. Fix matching of increment/decrement

    It wasn't properly verifying that pre/postfix was the same
    Ryan Patterson committed Jan 11, 2012
  4. [WIP] jspatch

    Half-completed jspatch that just dumps the modified source code.
    Ryan Patterson committed Jan 11, 2012
Commits on Jan 10, 2012
  1. matchStrict/findStrict

    Rather than using an object property, let's name the method differently.
    Ryan Patterson committed Jan 10, 2012
  2. Added some tests

    Testing jsgrep.jsgrep's various invocation methods.
    Ryan Patterson committed Jan 10, 2012