nendo 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/COPYING ADDED
@@ -0,0 +1,71 @@
1
+ Copyright and condition of use of main portion of the source:
2
+ -----------------------------------------------------------------------------
3
+
4
+ Copyright (c) 2010-2011 Kiyoka Nishiyama <kiyoka@sumibi.org>
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions
8
+ are met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions and the following disclaimer in the
15
+ documentation and/or other materials provided with the distribution.
16
+
17
+ 3. Neither the name of the authors nor the names of its contributors
18
+ may be used to endorse or promote products derived from this
19
+ software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
27
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+
33
+
34
+ Copyright of lib/srfi-1.nnd -------------------------------------------------
35
+
36
+ Copyright (c) 1998, 1999 by Olin Shivers. You may do as you please with
37
+ this code as long as you do not remove this copyright notice or
38
+ hold me liable for its use. Please send bug reports to shivers@ai.mit.edu.
39
+
40
+ Copyright of lib/srfi-26.nnd -------------------------------------------------
41
+
42
+ Copyright (c) 2009 Alex Shinn All rights reserved.
43
+
44
+ Copyright of lib/util/match.nnd -------------------------------------------------
45
+
46
+ This code is written by Alex Shinn and placed in the Public Domain.
47
+ All warranties are disclaimed.
48
+
49
+ Copyright of lib/util/list.nnd ----------------------------------------------
50
+
51
+ Copyright (c) 2003-2010 Shiro Kawai <shiro@acm.org>
52
+ Copyright(C) 2003 by Alex Shinn (foof@synthcode.com)
53
+
54
+ Permission to use, copy, modify, distribute this software and
55
+ accompanying documentation for any purpose is hereby granted,
56
+ provided that existing copyright notices are retained in all
57
+ copies and that this notice is included verbatim in all
58
+ distributions.
59
+ This software is provided as is, without express or implied
60
+ warranty. In no circumstances the author(s) shall be liable
61
+ for any damages arising out of the use of this software.
62
+
63
+ Copyright of test/* ---------------------------------------------------------
64
+
65
+ The test directory contains programs that are not part of Nendo but
66
+ are distributed in source form with the Nendo source code for the
67
+ convenience of programmers who need to test. All of those programs
68
+ are distributed by permission of the copyright holders; for specific
69
+ copyright notices, please consult the files themselves.
70
+
71
+ -----------------------------------------------------------------------------
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ === 0.6.4 / 2012-02-24
2
+
3
+ * Added debug.null library for inhibiting to display debug message.
4
+
5
+ * Added COPYING and README to gem.
6
+
7
+ * Refactored Rakefile.
8
+ Divided task `test' into `test1' and `test2'
9
+ Renamed task `test2' to `test3'
10
+ Removed arrays of command string.
11
+
12
+
1
13
  === 0.6.3 / 2012-02-18
2
14
 
3
15
  * Removed gem dependency for `jeweler' and `ruby-prof'.
data/Rakefile CHANGED
@@ -23,6 +23,8 @@ begin
23
23
  '.gemtest',
24
24
  'History.txt',
25
25
  'VERSION.yml',
26
+ 'README',
27
+ 'COPYING',
26
28
  'lib/**/*.rb',
27
29
  'lib/**/*.nnd',
28
30
  'lib/**/*.nndc',
@@ -46,52 +48,44 @@ end
46
48
 
47
49
  printf( "Info: NENDO_CLEAN_TEST is [%s]\n", ENV[ 'NENDO_CLEAN_TEST' ] )
48
50
 
49
- task :default => [:condition_clean, :test, :condition_test2] do
51
+ task :default => [:condition_clean, :test, :condition_test3] do
50
52
  end
51
53
 
52
- task :test do
53
- stage1 = []
54
- stage1 << "time ruby -I ./lib `which rspec` -b ./test/nendo_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
55
- stage1 << "time ruby -I ./lib `which rspec` -b ./test/syntax_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
56
- stage1 << "time ruby -I ./lib `which rspec` -b ./test/testframework_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
57
- stage1 << "time ruby -I ./lib ./bin/nendo ./test/srfi-1-test.nnd"
58
- stage2 = []
59
- stage2 << "/bin/rm -f test.record"
60
- stage2 << "echo "" > test.log"
61
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/textlib-test.nnd >> test.log"
62
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/nendo-util-test.nnd >> test.log"
63
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/json-test.nnd >> test.log"
64
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/srfi-2-test.nnd >> test.log"
65
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/srfi-26-test.nnd >> test.log"
66
- stage2 << "time ruby -I ./lib ./bin/nendo ./test/util-list-test.nnd >> test.log"
67
- stage2 << "cat test.record"
68
- arr = []
69
- arr += stage1
70
- arr += stage2
71
- arr.each {|str|
72
- sh str
73
- }
54
+ task :test => [:test1, :test2] do
55
+ end
56
+
57
+ task :test1 do
58
+ sh "time ruby -I ./lib `which rspec` -b ./test/nendo_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
59
+ sh "time ruby -I ./lib `which rspec` -b ./test/syntax_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
60
+ sh "time ruby -I ./lib `which rspec` -b ./test/testframework_spec.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter"
61
+ sh "time ruby -I ./lib ./bin/nendo ./test/srfi-1-test.nnd"
74
62
  end
75
63
 
76
64
  task :test2 do
77
- stage1 = []
78
- stage1 << "/bin/rm -f test.record"
79
- stage1 << "echo "" > test2.log"
80
- stage1 << "time ruby -I ./lib ./bin/nendo ./test/match-test.nnd | tee -a test2.log"
81
- stage1 << "time ruby -I ./lib ./bin/nendo ./test/util-combinations-test.nnd | tee -a test2.log"
82
- stage1 << "cat test.record"
83
- arr = []
84
- arr += stage1
85
- arr.each {|str|
86
- sh str
87
- }
65
+ sh "/bin/rm -f test.record"
66
+ sh "echo "" > test.log"
67
+ sh "time ruby -I ./lib ./bin/nendo ./test/textlib-test.nnd >> test.log"
68
+ sh "time ruby -I ./lib ./bin/nendo ./test/nendo-util-test.nnd >> test.log"
69
+ sh "time ruby -I ./lib ./bin/nendo ./test/json-test.nnd >> test.log"
70
+ sh "time ruby -I ./lib ./bin/nendo ./test/srfi-2-test.nnd >> test.log"
71
+ sh "time ruby -I ./lib ./bin/nendo ./test/srfi-26-test.nnd >> test.log"
72
+ sh "time ruby -I ./lib ./bin/nendo ./test/util-list-test.nnd >> test.log"
73
+ sh "cat test.record"
74
+ end
75
+
76
+ task :test3 do
77
+ sh "/bin/rm -f test.record"
78
+ sh "echo "" > test3.log"
79
+ sh "time ruby -I ./lib ./bin/nendo ./test/match-test.nnd | tee -a test3.log"
80
+ sh "time ruby -I ./lib ./bin/nendo ./test/util-combinations-test.nnd | tee -a test3.log"
81
+ sh "cat test.record"
88
82
  end
89
83
 
90
- task :condition_test2 do
84
+ task :condition_test3 do
91
85
  if 1 == ENV[ 'NENDO_CLEAN_TEST' ].to_i
92
- puts "Info: test2 is passed with NENDO_CLEAN_TEST=1 env. because test2 takes too much cpu time."
86
+ puts "Info: test3 is passed with NENDO_CLEAN_TEST=1 env. because test3 takes too much cpu time."
93
87
  else
94
- Rake::Task["test2"].execute
88
+ Rake::Task["test3"].execute
95
89
  end
96
90
  end
97
91
 
@@ -128,6 +122,7 @@ task :compile do
128
122
  files << "./lib/nendo/util/list.nnd"
129
123
  files << "./lib/nendo/text/html-lite.nnd"
130
124
  files << "./lib/nendo/text/tree.nnd"
125
+ files << "./lib/nendo/debug/null.nnd"
131
126
  files << "./lib/nendo/debug/syslog.nnd"
132
127
  files << "./lib/nendo/nendo/test.nnd"
133
128
  files << "./lib/nendo/rfc/json.nnd"
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 6
4
- :patch: 3
4
+ :patch: 4
@@ -0,0 +1,37 @@
1
+ ;;-*- mode: nendo; syntax: scheme -*-;;
2
+ ;;;
3
+ ;;; debug/null.nnd - #?= debug message output to null
4
+ ;;;
5
+ ;;;
6
+ ;;; Copyright (c) 2009-2011 Kiyoka Nishiyama <kiyoka@sumibi.org>
7
+ ;;;
8
+ ;;; Redistribution and use in source and binary forms, with or without
9
+ ;;; modification, are permitted provided that the following conditions
10
+ ;;; are met:
11
+ ;;;
12
+ ;;; 1. Redistributions of source code must retain the above copyright
13
+ ;;; notice, this list of conditions and the following disclaimer.
14
+ ;;;
15
+ ;;; 2. Redistributions in binary form must reproduce the above copyright
16
+ ;;; notice, this list of conditions and the following disclaimer in the
17
+ ;;; documentation and/or other materials provided with the distribution.
18
+ ;;;
19
+ ;;; 3. Neither the name of the authors nor the names of its contributors
20
+ ;;; may be used to endorse or promote products derived from this
21
+ ;;; software without specific prior written permission.
22
+ ;;;
23
+ ;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
+ ;;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
+ ;;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
+ ;;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
+ ;;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
+ ;;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
29
+ ;;; TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
+ ;;; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
+ ;;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
+ ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
+ ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ ;;;
35
+ ;;; $Id:
36
+ ;;;
37
+ (define (debug-print-output-func str) #t)
@@ -0,0 +1,22 @@
1
+ #
2
+ # This file is nendo's compiled library file.
3
+ # generated "nendo -c src" command.
4
+ #
5
+
6
+ trampCall(
7
+ begin
8
+ def self._debug_MIMARKprint_MIMARKoutput_MIMARKfunc_METHOD( origname, pred, args ) lispMethodEntry( origname, true ) ; ret = callProcedure( '_debug_MIMARKprint_MIMARKoutput_MIMARKfunc', origname, pred, args ) ; lispMethodExit( origname, true ) ; return ret end
9
+ @global_lisp_binding['_debug_MIMARKprint_MIMARKoutput_MIMARKfunc'] = self.method( :_debug_MIMARKprint_MIMARKoutput_MIMARKfunc_METHOD )
10
+ @_debug_MIMARKprint_MIMARKoutput_MIMARKfunc =
11
+ trampCall(
12
+ Proc.new { |_str|
13
+ true
14
+ }
15
+ )
16
+ end
17
+ )
18
+
19
+
20
+ # -------------------------------------------------------
21
+ # [EOF]
22
+ # -------------------------------------------------------
@@ -42,7 +42,7 @@ module Nendo
42
42
  end
43
43
 
44
44
  def self.version
45
- "0.6.3" ##NENDO-VERSION
45
+ "0.6.4" ##NENDO-VERSION
46
46
  end
47
47
 
48
48
  attr_reader :evaluator
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nendo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-19 00:00:00.000000000 Z
12
+ date: 2012-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2151867220 !ruby/object:Gem::Requirement
16
+ requirement: &2160450020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2151867220
24
+ version_requirements: *2160450020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &2151865220 !ruby/object:Gem::Requirement
27
+ requirement: &2160447700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2151865220
35
+ version_requirements: *2160447700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2151862920 !ruby/object:Gem::Requirement
38
+ requirement: &2160446020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2151862920
46
+ version_requirements: *2160446020
47
47
  description: Nendo is a programming language written in Ruby.
48
48
  email: kiyoka@sumibi.org
49
49
  executables:
@@ -53,7 +53,9 @@ extra_rdoc_files:
53
53
  - README
54
54
  files:
55
55
  - .gemtest
56
+ - COPYING
56
57
  - History.txt
58
+ - README
57
59
  - Rakefile
58
60
  - VERSION.yml
59
61
  - benchmark/benchmark.nnd
@@ -79,6 +81,8 @@ files:
79
81
  - example/nqueen.nnd
80
82
  - example/twitterTL.nnd
81
83
  - lib/nendo.rb
84
+ - lib/nendo/debug/null.nnd
85
+ - lib/nendo/debug/null.nndc
82
86
  - lib/nendo/debug/syslog.nnd
83
87
  - lib/nendo/debug/syslog.nndc
84
88
  - lib/nendo/init.nnd
@@ -125,7 +129,6 @@ files:
125
129
  - test/textlib-test.nnd
126
130
  - test/util-combinations-test.nnd
127
131
  - test/util-list-test.nnd
128
- - README
129
132
  homepage: http://github.com/kiyoka/nendo
130
133
  licenses: []
131
134
  post_install_message:
@@ -146,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
149
  version: '0'
147
150
  requirements: []
148
151
  rubyforge_project:
149
- rubygems_version: 1.8.11
152
+ rubygems_version: 1.8.17
150
153
  signing_key:
151
154
  specification_version: 3
152
155
  summary: Nendo is a dialect of Lisp.