GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of nex3/arc
Description: Paul Graham's Brand New Lisp
Homepage: http://arclanguage.org
Clone URL: git://github.com/KirinDave/arc.git
arc / as.scm
100644 31 lines (25 sloc) 0.594 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; mzscheme -m -f as.scm
; (tl)
; (asv)
; http://localhost:8080
 
(require mzscheme) ; promise we won't redefine mzscheme bindings
 
(require "ac.scm")
(require "brackets.scm")
(use-bracket-readtable)
(require "bitops.scm")
(load "ffi.scm")
 
(aload "arc.arc")
(aload "libs.arc")
 
(when (file-exists? "~/.arcshrc")
  (aload "~/.arcshrc"))
 
; If we have command-line arguments.
(if (> (vector-length argv) 0)
  ; If we have a command line argument that represents a file-name of
  ; a program.
  (begin
    (call-with-input-file
      (vector-ref argv 0)
      aload1)
    (exit))
  ; else
  (tl))