have a server that like does stuff now
This commit is contained in:
+3
-3
@@ -46,7 +46,7 @@ rep(String) ->
|
||||
case wfc_read:expr(String) of
|
||||
{ok, Expr, Rest} ->
|
||||
case wfc_eval:eval(Expr) of
|
||||
{ok, Result, NewContext} ->
|
||||
{ok, Result, _NewContext} ->
|
||||
io:format("result: ~s~n", [wfc_pp:eval_result(Result)]),
|
||||
%io:format("context: ~tw~n", [NewContext]),
|
||||
ok;
|
||||
@@ -107,10 +107,10 @@ mul([Arg | Rest]) ->
|
||||
case to_sentence(Arg) of
|
||||
{ok, S} ->
|
||||
case mul(Rest) of
|
||||
{ok, S2} -> wfc_sentence:mul(S, S2);
|
||||
{ok, S2} -> {ok, wfc_sentence:mul(S, S2)};
|
||||
Error -> Error
|
||||
end;
|
||||
Error -> Error
|
||||
end;
|
||||
mul([]) ->
|
||||
wfc_sentence:zero().
|
||||
{ok, wfc_sentence:one()}.
|
||||
|
||||
Reference in New Issue
Block a user