Permalink
Commits on Jan 11, 2017
  1. tokenizer: remove unused COND_ERROR (fixes #20)

    This fixes #20, as can be shown
    by comparing the output of the following command before/after this
    change:
    
        rm bashlex/parsetab.py*; make tests
    josephfrazier committed with Jan 11, 2017
Commits on Nov 25, 2016
  1. setup: bump version

    committed Nov 25, 2016
Commits on Nov 23, 2016
Commits on Nov 22, 2016
  1. parser: fix 'hack' table to derive states dynamically (fixes #7)

    the states which need fixing by the 'hack' are different for different Python
    versions and even differ on Windows vs Linux. Derive them dynamically
    from the state 0, this makes the test suite pass on Python 3.
    blurrymoi committed with Nov 18, 2016
  2. bashlex: add python 3 support

    * __nonzero__ in Py3 is __bool__
    * range returns an iterator instead of a list in Py3
    * made imports more specific
    * setuptools have different imports in Py2 and Py3
    blurrymoi committed with Nov 18, 2016
  3. Makefile: run nose through python, not directly

    This makes it easier to run the tests against multiple versions of
    Python installed using a version manager like pyenv.
    
    References:
    https://askubuntu.com/questions/588390/how-do-i-check-whether-a-module-is-installed-or-not-in-python/588392#588392
    nose-devs/nose#635
    https://github.com/yyuu/pyenv
    josephfrazier committed with Nov 18, 2016
Commits on Nov 20, 2016
Commits on Nov 18, 2016
  1. parser: move split() from tokenizer, pass parser to subst._expandword…

    …internal (fixes #12)
    
    I broke this in 4e091dd and probably hadn't noticed because I didn't run the
    doctests. Add a Makefile with a test target so I never forget.
    committed Nov 18, 2016
Commits on Nov 17, 2016
  1. readme: fix split() API example

    split() returns a generator, not a list
    josephfrazier committed Nov 17, 2016
  2. setup.py: bump version

    committed Nov 17, 2016
  3. readme: fix typo

    This lets it be copy/pasted correctly.
    josephfrazier committed with Nov 17, 2016
Commits on Sep 26, 2016
Commits on Feb 22, 2016
  1. readme: add debugging section

    committed Feb 21, 2016
Commits on Jan 31, 2016
  1. setup.py: bump version

    committed Jan 31, 2016
Commits on Oct 1, 2014
Commits on Sep 29, 2014
  1. parser: get rid of variable nodes, use parameter instead

    also, set the value of the parameter node to the name
    of the parameter:
    
    ${a b} -> 'a b'
    $@ -> '@'
    ..
    committed Sep 29, 2014
Commits on Sep 28, 2014
Commits on Sep 27, 2014
  1. susbst: don't crash on arithmetic expression when expanding words

    also, be more specific which feature isn't implemented
    committed Sep 27, 2014
Commits on Sep 25, 2014
  1. parser: add tests for while

    committed Sep 25, 2014
Commits on Sep 24, 2014
  1. parser: add for-loop support

    committed Sep 24, 2014
Commits on Sep 22, 2014
  1. bashlex: fix readme

    committed Sep 22, 2014
  2. bashlex: add setup.py

    committed Sep 22, 2014
  3. examples: fix visitor call

    committed Sep 22, 2014