Permalink
Switch branches/tags
Nothing to show
Commits on Nov 22, 2017
  1. Merge pull request #81 from flavorjones/flavorjones-master-frozen-str…

    flavorjones committed Nov 22, 2017
    …ing-literal
    
    support Ruby 2.4's frozen string literals (on master)
  2. ensure test suite enables frozen string literals

    flavorjones committed Nov 22, 2017
    for ruby 2.4 and higher, to prevent regressing on frozen literal support.
  3. support Ruby 2.4's frozen string literals

    flavorjones committed Feb 16, 2017
    Note this change is made relative to master.
  4. extract test script run by travis

    flavorjones committed Nov 22, 2017
    this is a prefactor which will allow us to add tests for ruby 2.4's
    frozen string literals
Commits on Nov 3, 2017
  1. Fix 'escapednl' scanner test with bad Ruby syntax

    alexdowad committed Nov 3, 2017
    It turns out that the Ruby syntax used in this test file was always bad, but the test
    happened to pass on the version of Ruby which was current at that time.
    
    Ruby contains a library called Ripper, which is based on Ruby's built-in parser and lexer
    and enables them to be invoked programmatically. The trouble with Ripper is that as the
    Ruby core team changes the parser code, the output from Ripper (even when run on the same
    input) may also change. Even seemingly innocuous changes to Ruby's parser may change
    Ripper in a way which breaks code which relies on it.
    
    This test file is a good example. On Ruby 2.2.8 and 2.4.2, Racc is able to process it
    without error. But on Ruby 2.3.5, the output from Ripper is different and the test fails.
    
    In any case, the Ruby syntax is incorrect. The intention was to ensure that Racc works
    when action blocks contain correct Ruby code, not incorrect. So the bad part can just
    be removed.
  2. More detailed message when lexer for action blocks stops in wrong place

    alexdowad committed Nov 3, 2017
    ...Or if it overruns the end of the action block.
    
    The whole point of RubyLexer is to skip over the Ruby code in an action block,
    so that the grammar file scanner can continue lexing from whatever follows it.
  3. Fix test for --executable when tests are run using 'bundle exec'

    alexdowad committed Nov 3, 2017
    According to the Bundler documentation, "Any Ruby code that opens a subshell
    (like system, backticks, or %x{}) will automatically use the current Bundler environment."
    Since that is so, it's not necessary to generate executable parser files with
    "bundle exec ruby" in the shebang when running tests using 'bundle exec'.
    
    Good thing too, because Linux handles the shebang in a bad way. In Linux, this:
    
      #!bundle exec ruby
    
    Is the same as running your script as:
    
      bundle "exec ruby" script.rb
    
    ...Which obviously doesn't work. In other words, Linux only allows a single argument
    to be included in a shebang line (it doesn't split the arguments on whitespace).
  4. Lowest supported Ruby version is 2.2.8

    alexdowad committed Nov 3, 2017
    This is the oldest Ruby version which is still supported by the Ruby core team
    (as of right now).
  5. Update dependencies

    alexdowad committed Nov 3, 2017
Commits on Nov 2, 2017
Commits on May 12, 2017
Commits on May 10, 2017
  1. Oops. Fixed the tests I broke with a 1 char change.

    zenspider committed May 10, 2017
    Tests like this are brittle and prone to churn. Should consider at
    least doing a sanitizing step.
  2. Add appropriate license header to Cparse.java

    headius authored and zenspider committed May 10, 2017
    Cparse.java, as a port of cparse.c, is also licensed under the terms of Ruby itself.
    
    See jruby/jruby#4603.
Commits on Dec 1, 2016
  1. Pass through encoding comment from input to generated parser file

    alexdowad committed Dec 1, 2016
    Ruby source files with funny weird characters may require an encoding
    comment to run correctly. Since Racc grammar files contain embedded
    Ruby code, encoding comments are just as important to them as to ordinary
    Ruby source files.
    
    So: respect any encoding comment which appears at the beginning of a
    Racc grammar file. It must be the *first* line in the file.
    
    Fixes GitHub issue #20.
Commits on Nov 30, 2016
  1. --executable option works now

    alexdowad committed Nov 30, 2016
    Thanks to Peter Crozier for pointing out that it was broken!
  2. Embed info.rb and exception.rb in generated parser when -E option used

    alexdowad committed Nov 30, 2016
    racc/parser.rb requires these 2 files. If someone generates a parser with
    'embedded runtime', and the parser is run on a machine which doesn't have
    the racc gem installed, it will fail due to the absence of these files.
    
    -E should embed *everything* which is needed for a standalone parser.
    
    There is already a test case which uses -E: now, I have made sure that
    Racc is *not* added to the Ruby load path when running that case.
  3. Eliminate parser-text.rb

    alexdowad committed Nov 30, 2016
    The whole purpose of this file was just a really roundabout way
    of getting the text of racc/parser.rb as a string. Guess what...
    Ruby *does* have an easy way to read a file in as a string.
  4. Better error message if input file contains no rules

    alexdowad committed Nov 30, 2016
    Fixes GitHub issue #77.
  5. restore change

    soukouki authored and alexdowad committed Jul 20, 2016
  6. add encoding magic comment

    soukouki authored and alexdowad committed Jul 19, 2016
Commits on Apr 29, 2016
  1. Merge pull request #73 from hsbt/remove-unused-vals

    alexdowad committed Apr 29, 2016
    Removed unused variables.
  2. Removed unused variables.

    hsbt committed Apr 29, 2016
    It's applied at ruby/ruby@448c870 on ruby core.
Commits on Apr 26, 2016
  1. Merge pull request #72 from znz/fix-typo

    alexdowad committed Apr 26, 2016
    fix a typo (grammer -> grammar)
  2. fix a typo (grammer -> grammar)

    znz committed Apr 26, 2016
Commits on Feb 22, 2016
  1. Merge pull request #71 from windwiny/emptyusercode

    alexdowad committed Feb 22, 2016
    fix empty user code error
  2. fix empty user code error

    windwiny committed Feb 22, 2016
Commits on Feb 18, 2016
  1. Merge pull request #68 from windwiny/missfile

    alexdowad committed Feb 18, 2016
    Add missing files to Manifest.txt
  2. missing some file

    windwiny committed Feb 18, 2016
Commits on Jan 16, 2016
  1. Merge pull request #65 from walf443/update_travis

    alexdowad committed Jan 16, 2016
    update travis test ruby version.
  2. Merge pull request #64 from walf443/fix/unused_variable_target_offset

    alexdowad committed Jan 16, 2016
    remove unused variable warnings.