parslet 0.9.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/HISTORY.txt +24 -1
- data/README +23 -66
- data/Rakefile +10 -6
- data/lib/parslet.rb +50 -137
- data/lib/parslet/atoms.rb +12 -479
- data/lib/parslet/atoms/alternative.rb +40 -0
- data/lib/parslet/atoms/base.rb +196 -0
- data/lib/parslet/atoms/entity.rb +48 -0
- data/lib/parslet/atoms/lookahead.rb +57 -0
- data/lib/parslet/atoms/named.rb +31 -0
- data/lib/parslet/atoms/re.rb +28 -0
- data/lib/parslet/atoms/repetition.rb +58 -0
- data/lib/parslet/atoms/sequence.rb +37 -0
- data/lib/parslet/atoms/str.rb +26 -0
- data/lib/parslet/error_tree.rb +2 -2
- data/lib/parslet/expression.rb +41 -0
- data/lib/parslet/expression/treetop.rb +53 -0
- data/lib/parslet/parser.rb +17 -0
- data/lib/parslet/pattern.rb +22 -12
- data/lib/parslet/pattern/binding.rb +25 -16
- data/lib/parslet/pattern/context.rb +24 -0
- data/lib/parslet/transform.rb +70 -25
- metadata +37 -8
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 10
|
8
|
+
- 1
|
9
|
+
version: 0.10.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kaspar Schiess
|
@@ -14,13 +14,29 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-23 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: blankslate
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 1
|
31
|
+
- 2
|
32
|
+
- 3
|
33
|
+
version: 2.1.2.3
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
24
40
|
none: false
|
25
41
|
requirements:
|
26
42
|
- - ">="
|
@@ -29,11 +45,11 @@ dependencies:
|
|
29
45
|
- 0
|
30
46
|
version: "0"
|
31
47
|
type: :development
|
32
|
-
version_requirements: *
|
48
|
+
version_requirements: *id002
|
33
49
|
- !ruby/object:Gem::Dependency
|
34
50
|
name: flexmock
|
35
51
|
prerelease: false
|
36
|
-
requirement: &
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
37
53
|
none: false
|
38
54
|
requirements:
|
39
55
|
- - ">="
|
@@ -42,7 +58,7 @@ dependencies:
|
|
42
58
|
- 0
|
43
59
|
version: "0"
|
44
60
|
type: :development
|
45
|
-
version_requirements: *
|
61
|
+
version_requirements: *id003
|
46
62
|
description:
|
47
63
|
email: kaspar.schiess@absurd.li
|
48
64
|
executables: []
|
@@ -57,9 +73,22 @@ files:
|
|
57
73
|
- LICENSE
|
58
74
|
- Rakefile
|
59
75
|
- README
|
76
|
+
- lib/parslet/atoms/alternative.rb
|
77
|
+
- lib/parslet/atoms/base.rb
|
78
|
+
- lib/parslet/atoms/entity.rb
|
79
|
+
- lib/parslet/atoms/lookahead.rb
|
80
|
+
- lib/parslet/atoms/named.rb
|
81
|
+
- lib/parslet/atoms/re.rb
|
82
|
+
- lib/parslet/atoms/repetition.rb
|
83
|
+
- lib/parslet/atoms/sequence.rb
|
84
|
+
- lib/parslet/atoms/str.rb
|
60
85
|
- lib/parslet/atoms.rb
|
61
86
|
- lib/parslet/error_tree.rb
|
87
|
+
- lib/parslet/expression/treetop.rb
|
88
|
+
- lib/parslet/expression.rb
|
89
|
+
- lib/parslet/parser.rb
|
62
90
|
- lib/parslet/pattern/binding.rb
|
91
|
+
- lib/parslet/pattern/context.rb
|
63
92
|
- lib/parslet/pattern.rb
|
64
93
|
- lib/parslet/transform.rb
|
65
94
|
- lib/parslet.rb
|