patternmatching 0.1.1 → 0.1.2

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.
data/History.txt CHANGED
@@ -1,3 +1,14 @@
1
+ == 0.1.2 2007-06-04
2
+
3
+ * 1 minor enhancement:
4
+ * Reupdate
5
+
6
+ == 0.1.1 2007-06-04
7
+
8
+ * 1 minor enhancement:
9
+ * Check use with rubygems system
10
+ * Update examples and web site
11
+
1
12
  == 0.1.0 2007-06-03
2
13
 
3
14
  * 1 major enhancement:
data/README.txt CHANGED
@@ -44,8 +44,8 @@ include PatternMatching
44
44
  # match example
45
45
  def calc(code)
46
46
  make(code) {
47
- seems as {plus(:x, :y)} do calc(x) + calc(y) end
48
- seems as {mul(:x, :y)} do calc(x) * calc(y) end
47
+ seems as {plus(:a, :b)} do calc(a) + calc(b) end
48
+ seems as {mul(:a, :b)} do calc(a) * calc(b) end
49
49
  seems something do code end
50
50
  }
51
51
  end
@@ -67,11 +67,11 @@ class Calc
67
67
  extend PatternMatching
68
68
 
69
69
  # def calcm(o), as 3 partial styles
70
- func(:calcm).seems as {plus(:x, :y)} do
71
- calcm(x) + calcm(y)
70
+ func(:calcm).seems as {plus(:a, :a)} do
71
+ calcm(b) + calcm(b)
72
72
  end
73
- func(:calcm).seems as {mul(:x, :y)} do
74
- calcm(x) * calcm(y)
73
+ func(:calcm).seems as {mul(:a, :b)} do
74
+ calcm(a) * calcm(b)
75
75
  end
76
76
  func(:calcm).seems as {:value} do
77
77
  value
@@ -2,7 +2,7 @@ module PatternMatching #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>PatternMatching module</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/patternmatching"; return false'>
35
35
  Get Version
36
- <a href="http://rubyforge.org/projects/patternmatching" class="numbers">0.1.1</a>
36
+ <a href="http://rubyforge.org/projects/patternmatching" class="numbers">0.1.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;patternmatching&#8217;</h1>
39
39
 
@@ -94,8 +94,8 @@ include PatternMatching
94
94
  # match example
95
95
  def calc(code)
96
96
  make(code) {
97
- seems as {plus(:x, :y)} do calc(x) + calc(y) end
98
- seems as {mul(:x, :y)} do calc(x) * calc(y) end
97
+ seems as {plus(:a, :b)} do calc(a) + calc(b) end
98
+ seems as {mul(:a, :b)} do calc(a) * calc(b) end
99
99
  seems something do code end
100
100
  }
101
101
  end
@@ -117,11 +117,11 @@ class Calc
117
117
  extend PatternMatching
118
118
 
119
119
  # def calcm(o), as 3 partial styles
120
- func(:calcm).seems as {plus(:x, :y)} do
121
- calcm(x) + calcm(y)
120
+ func(:calcm).seems as {plus(:a, :a)} do
121
+ calcm(b) + calcm(b)
122
122
  end
123
- func(:calcm).seems as {mul(:x, :y)} do
124
- calcm(x) * calcm(y)
123
+ func(:calcm).seems as {mul(:a, :b)} do
124
+ calcm(a) * calcm(b)
125
125
  end
126
126
  func(:calcm).seems as {:value} do
127
127
  value
data/website/index.txt CHANGED
@@ -44,8 +44,8 @@ include PatternMatching
44
44
  # match example
45
45
  def calc(code)
46
46
  make(code) {
47
- seems as {plus(:x, :y)} do calc(x) + calc(y) end
48
- seems as {mul(:x, :y)} do calc(x) * calc(y) end
47
+ seems as {plus(:a, :b)} do calc(a) + calc(b) end
48
+ seems as {mul(:a, :b)} do calc(a) * calc(b) end
49
49
  seems something do code end
50
50
  }
51
51
  end
@@ -67,11 +67,11 @@ class Calc
67
67
  extend PatternMatching
68
68
 
69
69
  # def calcm(o), as 3 partial styles
70
- func(:calcm).seems as {plus(:x, :y)} do
71
- calcm(x) + calcm(y)
70
+ func(:calcm).seems as {plus(:a, :a)} do
71
+ calcm(b) + calcm(b)
72
72
  end
73
- func(:calcm).seems as {mul(:x, :y)} do
74
- calcm(x) * calcm(y)
73
+ func(:calcm).seems as {mul(:a, :b)} do
74
+ calcm(a) * calcm(b)
75
75
  end
76
76
  func(:calcm).seems as {:value} do
77
77
  value
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: patternmatching
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
6
+ version: 0.1.2
7
7
  date: 2007-06-04 00:00:00 +09:00
8
8
  summary: Provide a pure ruby module that can build structured objects easily, can enable pattern match of objects, and can define method as a partial function style.
9
9
  require_paths: