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
Convert ReiaEval and Kernel to CamelCase
Tony Arcieri (author)
Tue Aug 05 00:39:45 -0700 2008
commit  f518ca21051350c1f56c7cb5e28d89d549462594
tree    2fb3dcec9e8bdf4a2087985022fabe5c94e3b84d
parent  f8d3e0cb57186ca839f45e7b5f4c2db0db377fe9
...
23
24
25
26
 
27
28
29
...
23
24
25
 
26
27
28
29
0
@@ -23,7 +23,7 @@ module Reia
0
   
0
   def eval_input(input)
0
     try
0
- reia_eval::string(input)
0
+ ReiaEval.string(input)
0
       erlang::halt(0)
0
     catch ex
0
       io::format("exception: ~p~n".to_list(), [ex])
...
9
10
11
12
 
13
14
15
...
40
41
42
43
 
44
45
46
...
55
56
57
58
 
59
60
61
...
9
10
11
 
12
13
14
15
...
40
41
42
 
43
44
45
46
...
55
56
57
 
58
59
60
61
0
@@ -9,7 +9,7 @@
0
 -export([start/0]).
0
 
0
 start() ->
0
- run(reia_eval:new_binding()).
0
+ run('ReiaEval':new_binding()).
0
   
0
 run(Binding) ->
0
   case read() of
0
@@ -40,7 +40,7 @@ read_until_blank(Input, Prompt) ->
0
 eval_print(String, Binding) ->
0
   case reia_parse:string(String) of
0
     {ok, Exprs} ->
0
- {value, Value, NewBinding} = reia_erl:r2e(reia_eval:exprs(Exprs, Binding)),
0
+ {value, Value, NewBinding} = reia_erl:r2e('ReiaEval':exprs(Exprs, Binding)),
0
       print(Value),
0
       NewBinding;
0
       
0
@@ -55,7 +55,7 @@ eval_print(String, Binding) ->
0
 
0
 print(Value) ->
0
   {string, String} = reia_dispatch:funcall(Value, to_s, []),
0
- io:format("~s~n", [binary_to_list(String)]).
0
+ io:format("=> ~s~n", [binary_to_list(String)]).
0
   
0
 parse_error({Line, Error}) ->
0
   io:format("Error: Line ~w: ~s~n", [Line, Error]).
...
1
2
 
 
3
...
 
1
2
3
4
0
@@ -1 +1,2 @@
0
-puts("Hello, world!")
0
\ No newline at end of file
0
+load("test/parser/newline_test.re")
0
+NewlineTest.run()
0
\ No newline at end of file

Comments

    No one has commented yet.