public
Description: Reia is a Ruby/Python-like language for BEAM, the Erlang VM
Homepage: http://reia-lang.org
Clone URL: git://github.com/tarcieri/reia.git
Allow reia interpreter to accept a filename as a parameter
Tony Arcieri (author)
Sat Jun 28 15:16:35 -0700 2008
commit  fcb1d1bfa09bffc510a7229fe9a9275d043e8a16
tree    3f548ba878e84dabaa8e31ba41e29009f8f6d638
parent  e4e39b303450ecde86aaea6c8f2f5fdb698f6317
...
1
2
3
 
4
5
6
 
 
 
 
7
8
9
...
12
13
14
15
16
 
17
...
1
2
 
3
4
 
 
5
6
7
8
9
10
11
...
14
15
16
 
17
18
19
0
@@ -1,9 +1,11 @@
0
 module Reia
0
   def start
0
- reia::read_input([])
0
+ read_input([])
0
     
0
- def start(_args)
0
- reia::read_input([])
0
+ def start(args)
0
+ (~ok, input) = file::read_file(args[0])
0
+ reia_eval::string(input.to_string())
0
+ erlang::halt(0)
0
 
0
   def read_input(data)
0
     case io::get_line(~'')
0
@@ -12,4 +14,4 @@ module Reia
0
         reia_eval::string(input)
0
         erlang::halt(0)
0
       string:
0
- reia::read_input(data.push(string))
0
\ No newline at end of file
0
+ read_input(data.push(string))
0
\ No newline at end of file

Comments

    No one has commented yet.