Merge pull request #180 from prashantbarca/change-bindings

Change filename in ruby bindings
This commit is contained in:
Meredith L. Patterson 2017-06-27 23:20:26 +02:00 committed by GitHub
commit 55280a73ee
7 changed files with 8 additions and 10 deletions

1
.gitignore vendored
View file

@ -24,3 +24,4 @@ libhammer.pc
.sconsign.dblite
*.os
*.pyc
*.gem

View file

@ -50,7 +50,7 @@ Add hammer to your Gemfile.
Use hammer in your project.
`require 'hammer'`
`require 'hammer-parser'`
### Building a parser

View file

@ -1,7 +1,7 @@
#encoding: UTF-8
Gem::Specification.new do |s|
s.name = 'hammer-parser'
s.version = '0.1.0'
s.version = '0.2.0'
s.summary = 'Ruby bindings to the hammer parsing library.'
s.description = s.summary # TODO: longer description?
s.authors = ['Meredith L. Patterson', 'TQ Hirsch', 'Jakob Rath']
@ -15,7 +15,7 @@ Gem::Specification.new do |s|
"lib/hammer/internal.rb",
"lib/hammer/parser.rb",
"lib/hammer/parser_builder.rb",
"lib/hammer.rb",
"lib/hammer-parser.rb",
"lib/minitest/hamer-parser_plugin.rb",
"test/autogen_test.rb",
"test/parser_test.rb"

View file

@ -2,11 +2,6 @@ require 'hammer/internal'
require 'hammer/parser'
require 'hammer/parser_builder'
# TODO:
# Probably need to rename this file to 'hammer-parser.rb', so
# people can use "require 'hammer-parser'" in their code.
# Leave this in for now to be able to play around with HParseResult in irb.
x = nil
parser = Hammer::Parser.build {

View file

@ -19,8 +19,10 @@ module Hammer
@dont_gc = dont_gc.dup
end
# dont_gc is required to build a fuzzer from the declaration of Hammer::Parser object.
attr_reader :name
attr_reader :h_parser
attr_reader :dont_gc
# Parse the given data. Returns the parse result if successful, nil otherwise.
#

View file

@ -1,6 +1,6 @@
require 'bundler/setup'
require 'minitest/autorun'
require 'hammer'
require 'hammer-parser'
class TestToken < Minitest::Test
def setup
super

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
require 'bundler/setup'
require 'hammer'
require 'hammer-parser'
require 'minitest/autorun'
class ParserTest < Minitest::Test