svn: r3632
This commit is contained in:
Matthias Felleisen 2006-07-06 19:52:04 +00:00
parent c8e7482511
commit e7a03a3018
12 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,3 @@
package colors;
public class Black extends Color { }

View File

@ -0,0 +1,3 @@
package colors;
public class Blue extends Color { }

View File

@ -0,0 +1,3 @@
package colors;
public abstract class Color { }

View File

@ -0,0 +1,3 @@
package colors;
public class Green extends Color { }

View File

@ -0,0 +1,3 @@
package colors;
public class Red extends Color { }

View File

@ -0,0 +1,3 @@
package colors;
public class White extends Color { }

View File

@ -0,0 +1,3 @@
package colors;
public class Yellow extends Color { }

View File

@ -0,0 +1,4 @@
(module info (lib "infotab.ss" "setup")
(define name "Colors Teachpack")
(define install-collection "installer.ss")
#;(define pre-install-collection "pre-installer.ss"))

View File

@ -0,0 +1,25 @@
(module installer mzscheme
(require (lib "compile.ss" "profj"))
(provide installer)
(define (mprintf . a)
(fprintf a (current-error-port)))
(define (installer plthome)
(let ((draw-path (build-path (collection-path "htdch" "colors"))))
(let ((javac
(lambda (file)
(parameterize ([current-load-relative-directory draw-path]
[current-directory draw-path] )
(compile-java 'file 'file 'full
(build-path draw-path file)
#f #f)))))
(javac "Color.java")
(javac "Red.java")
(javac "White.java")
(javac "Blue.java")
(javac "Black.java")
(javac "Green.java")
(javac "Yellow.java")
))))

View File

@ -0,0 +1,10 @@
package geometry;
public class Posn {
public int x, y;
public Posn( int x, int y ) {
this.x = x;
this.y = y;
}
}

View File

@ -0,0 +1,4 @@
(module info (lib "infotab.ss" "setup")
(define name "Geometry Teachpack")
(define install-collection "installer.ss")
#;(define pre-install-collection "pre-installer.ss"))

View File

@ -0,0 +1,18 @@
(module installer mzscheme
(require (lib "compile.ss" "profj"))
(provide installer)
(define (mprintf . a)
(fprintf a (current-error-port)))
(define (installer plthome)
(let ((draw-path (build-path (collection-path "htdch" "geometry"))))
(let ((javac
(lambda (file)
(parameterize ([current-load-relative-directory draw-path]
[current-directory draw-path] )
(compile-java 'file 'file 'full
(build-path draw-path file)
#f #f)))))
(javac "Posn.java")))))