Skip to content
Browse files

Release 0.2.0.

  • Loading branch information...
1 parent 8b04dca commit 6ad0b56477891982047413ac0101c3909ea3cee4 @h3rald committed
Showing with 10 additions and 10 deletions.
  1. +1 −0 CHANGELOG.rdoc
  2. +5 −5 README.rdoc
  3. +3 −3 Rakefile
  4. +1 −2 lib/concatenative/kernel.rb
View
1 CHANGELOG.rdoc
@@ -11,6 +11,7 @@
* Performance improvement: no symbol/string conversion when processing words.
* Added ~ operator (call, unquote) for Symbols and Arrays. Removed Array#unquote and Symbol#unquote
* Added Symbol#<= to define words and Symbol#/ to concatenate them.
+* Added Symbol#/ to concatenate symbols and simulate namespaces.
* Removed Symbol#define (use Symbol#<= instead)
== Version 0.1.0
View
10 README.rdoc
@@ -22,16 +22,16 @@ Execute a Concatenative program:
10,
[0, :==],
[1, :+],
- [:DUP, 1, :-],
+ [:dup, 1, :-],
[:*],
- :LINREC
+ :linrec
)
-The program above returns the factorial of 10, computed using the linrec combinator. It is also possible to execute arrays directly and define concatenative programs as symbols (tey must be all uppercase).
+The program above returns the factorial of 10, computed using the linrec combinator. It is also possible to execute arrays directly and define concatenative programs as symbols, as folows:
- :FACTORIAL.define [0, :==], [:POP, 1], [:DUP, 1, :- , :FACTORIAL, :*], :IFTE
- [5, :FACTORIAL].execute
+ :factorial <= [0, :==], [:pop, 1], [:dup, 1, :- , :factorial, :*], :if
+ [5, :factorial].execute
The program above calculates the factorial of 5, using explicit recursion.
View
6 Rakefile
@@ -22,8 +22,8 @@ end
spec = Gem::Specification.new do |s|
s.name = %q{concatenative}
- s.version = "0.1.0"
- s.date = %q{2009-03-29}
+ s.version = "0.2.0"
+ s.date = %q{2009-04-19}
s.summary = %q{A Ruby DSL for concatenative programming.}
s.email = %q{h3rald@h3rald.com}
s.homepage = %q{http://rubyforge.org/projects/concatenative}
@@ -32,7 +32,7 @@ spec = Gem::Specification.new do |s|
s.has_rdoc = true
s.authors = ["Fabio Cevasco"]
s.files = FileList["{lib}/**/*"].to_a+FileList["{examples}/*"].to_a+FileList["{spec}/*"].to_a+["README.rdoc", "LICENSE", "CHANGELOG.rdoc"]
- s.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec"]
+ s.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec", "--line-numbers"]
s.extra_rdoc_files = ["README.rdoc", "LICENSE", "CHANGELOG.rdoc"]
s.test_file = 'spec/concatenative_spec.rb'
end
View
3 lib/concatenative/kernel.rb
@@ -300,8 +300,7 @@ def linrec
end
end
- # Same as _linrec, but it is only necessary to specify THEN and REC2.
- #
+ # Same as linrec, but it is only necessary to specify THEN and REC2.
# * REC1 = a program to reduce A to its zero value (0, [], "").
# * IF = a condition to verify if A is its zero value (0, [], "") or not.
#

0 comments on commit 6ad0b56

Please sign in to comment.
Something went wrong with that request. Please try again.