2012-05-07 3 views
2

나는이 오류가 계속 내 얼랑 스크립트 컴파일하려고하면 다음과 같습니다얼랑 구문 오류

([email protected])15> c(distribute). 
distribute.erl:55: syntax error before: 
distribute.erl:42: function get_completed/3 undefined 
error 

을 내 자료 :

get_completed(Current, Index, Count) -> 
    if 
     length(Current) >= Index -> 
      {Count, length(Current)}; 
     true -> 
      if 
       lists:nth(Index, Current) == 'timeout' -> 
        get_completed(Current, Index+1, Count); 
       true -> 
        get_completed(Current, Index+1, Count+1) 
      end 
    end 

라인 (55)은 지난 end

+0

은 이전 함수 정의가'.'로 올바르게 끝났습니까? –

답변

4

당신 마지막 끝 후에 마침표로 기능을 종료해야합니다.