rley 0.4.00 → 0.4.01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +9 -7
- data/CHANGELOG.md +7 -0
- data/README.md +18 -8
- data/appveyor.yml +20 -0
- data/lib/rley/constants.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e935e339154ef6729bc4e4679c9ee9c2e81bba
|
4
|
+
data.tar.gz: 479a0cbdc90d6137780983e4eb5b64026e5e844b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 453d7539813b80a7664d71dbfedc2cda89efd09be1db52515a3f5dd7fd314f61e89b7659b88c48ce08f947f8cd614fbf0cab8c9193c653a92da8cf9b76d5faf0
|
7
|
+
data.tar.gz: c14955b02a089aa48dba40b5d97e42aeed880e16dd846d5451af85dad387e581060c0c742b58f3365f7c0305144a1f48a50a3ad7af8feb9b9f4336faff839d85
|
data/.travis.yml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
# - 1.9.3
|
4
3
|
- 2.0.0
|
5
|
-
- 2.1.
|
6
|
-
- 2.2.
|
7
|
-
-
|
8
|
-
-
|
9
|
-
|
10
|
-
|
4
|
+
- 2.1.9
|
5
|
+
- 2.2.6
|
6
|
+
- 2.3.3
|
7
|
+
- ruby-head
|
8
|
+
- rbx-2.2
|
9
|
+
- jruby-9.1.0.0
|
10
|
+
- jruby-head
|
11
11
|
matrix:
|
12
12
|
allow_failures:
|
13
|
+
- rvm: ruby-head
|
14
|
+
- rvm: rbx-2.2
|
13
15
|
- rvm: jruby-head
|
14
16
|
|
15
17
|
gemfile:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.4.01 / 2016-12-21
|
2
|
+
* [NEW] File `appveyor.yml`. Add AppVeyor CI to Github commits. AppVeyor complements Travis by running builds under Windows OS.
|
3
|
+
This permits to test the portability across operating systems.
|
4
|
+
* [CHANGE] File `README.md` Added AppVeyor badge.
|
5
|
+
* [CHANGE] File `rley.gemspec` drop support for Ruby 1.9.3. Lowest supported Ruby version is now 2.0.0.
|
6
|
+
* [CHANGE] File `.travis.yml` updated list of Ruby versions to use by Travis CI
|
7
|
+
|
1
8
|
### 0.4.00 / 2016-12-17
|
2
9
|
* [CHANGE] Error reporting is vastly changed. Syntax errors don't raise exceptions.
|
3
10
|
parse error can be retrieved via an `ErrorReason` object. Such an object is returned by the
|
data/README.md
CHANGED
@@ -1,23 +1,24 @@
|
|
1
|
-
[
|
1
|
+
#[Rley](https://github.com/famished-tiger/Rley)
|
2
|
+
|
3
|
+
[](https://travis-ci.org/famished-tiger/Rley)
|
4
|
+
[](https://ci.appveyor.com/project/famished-tiger/rley)
|
2
5
|
[](https://coveralls.io/r/famished-tiger/Rley?branch=master)
|
3
6
|
[](http://badge.fury.io/rb/rley)
|
4
7
|
[](https://gemnasium.com/famished-tiger/Rley)
|
5
8
|
[](http://inch-ci.org/github/famished-tiger/Rley)
|
6
9
|
[](https://github.com/famished-tiger/Rley/blob/master/LICENSE.txt)
|
7
10
|
|
8
|
-
|
9
|
-
[Rley](https://github.com/famished-tiger/Rley)
|
10
|
-
======
|
11
|
-
|
12
11
|
A Ruby library for constructing general parsers for _any_ context-free language.
|
13
12
|
|
13
|
+
====
|
14
|
+
|
14
15
|
|
15
16
|
What is Rley?
|
16
17
|
-------------
|
17
18
|
__Rley__ uses the [Earley](http://en.wikipedia.org/wiki/Earley_parser)
|
18
19
|
algorithm which is a general parsing algorithm that can handle any context-free
|
19
20
|
grammar. Earley parsers can literally swallow anything that can be described
|
20
|
-
by
|
21
|
+
by a context-free grammar. That's why Earley parsers find their place in so
|
21
22
|
many __NLP__ (_Natural Language Processing_) libraries/toolkits.
|
22
23
|
|
23
24
|
In addition, __Rley__ goes beyond most Earley parser implementations by providing
|
@@ -44,13 +45,22 @@ application range such as:
|
|
44
45
|
* artificial intelligence and
|
45
46
|
* Natural Language Processing.
|
46
47
|
|
47
|
-
|
48
|
+
### Features
|
48
49
|
* Simple API for context-free grammar definition,
|
49
50
|
* Allows ambiguous grammars,
|
50
51
|
* Generates shared packed parse forests,
|
51
52
|
* Accepts left-recursive rules/productions,
|
52
53
|
* Provides syntax error detection and reporting.
|
53
54
|
|
55
|
+
|
56
|
+
### Compatibility
|
57
|
+
Rley supports the following Ruby implementations:
|
58
|
+
- MRI 2.0
|
59
|
+
- MRI 2.1
|
60
|
+
- MRI 2.2
|
61
|
+
- MRI 2.3
|
62
|
+
- JRuby 9.0+
|
63
|
+
|
54
64
|
---
|
55
65
|
|
56
66
|
Getting Started
|
@@ -262,7 +272,7 @@ Here are a few other ones:
|
|
262
272
|
Aimed in parsing brazilian portuguese.
|
263
273
|
[earley project](https://github.com/joshingly/earley) -- An Earley parser (grammar rules are specified in JSON format).
|
264
274
|
The code doesn't seem to be maintained: latest commit dates from Nov. 2011.
|
265
|
-
- [linguist project](https://github.com/davidkellis/linguist) -- Advertised as library for parsing context-free languages.
|
275
|
+
- [linguist project](https://github.com/davidkellis/linguist) -- Advertised as a library for parsing context-free languages.
|
266
276
|
It is a recognizer not a parser. In other words it can only tell whether a given input
|
267
277
|
conforms to the grammar rules or not. As such it cannot build parse trees.
|
268
278
|
The code doesn't seem to be maintained: latest commit dates from Oct. 2011.
|
data/appveyor.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
version: '{build}'
|
2
|
+
max_jobs: 3
|
3
|
+
environment:
|
4
|
+
matrix:
|
5
|
+
- Ruby_version: 200
|
6
|
+
- Ruby_version: 200-x64
|
7
|
+
- Ruby_version: 21
|
8
|
+
- Ruby_version: 21-x64
|
9
|
+
- Ruby_version: 22
|
10
|
+
- Ruby_version: 22-x64
|
11
|
+
- Ruby_version: 23
|
12
|
+
- Ruby_version: 23-x64
|
13
|
+
install:
|
14
|
+
- cmd: >-
|
15
|
+
SET PATH=C:\Ruby%Ruby_version%\bin;%PATH%
|
16
|
+
|
17
|
+
bundle install --retry=3 --clean
|
18
|
+
build: off
|
19
|
+
test_script:
|
20
|
+
- cmd: bundle exec rake
|
data/lib/rley/constants.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.01
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Geshef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- LICENSE.txt
|
130
130
|
- README.md
|
131
131
|
- Rakefile
|
132
|
+
- appveyor.yml
|
132
133
|
- examples/NLP/mini_en_demo.rb
|
133
134
|
- examples/data_formats/JSON/JSON_demo.rb
|
134
135
|
- examples/data_formats/JSON/JSON_grammar.rb
|
@@ -281,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
282
|
requirements:
|
282
283
|
- - ">="
|
283
284
|
- !ruby/object:Gem::Version
|
284
|
-
version:
|
285
|
+
version: 2.0.0
|
285
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
287
|
requirements:
|
287
288
|
- - ">="
|