[erlang-questions] My favorite syntax error: semicolon before end

Doug Edmunds dougedmunds@REDACTED
Tue Jun 24 23:34:31 CEST 2008


In the docs:
at <ROOT>/doc/design_principles/fsm.html
AKA OTP Design Principles 3.2
Version 5.6.3

Example: Section 3.2


1> c(code_lock).
./code_lock.erl:26: syntax error before: 'end'
./code_lock.erl:6: function locked/2 undefined
./code_lock.erl:29: function do_lock/0 undefined
./code_lock.erl:2: Warning: undefined callback function code_change/4
(behaviour 'gen_fsm')
./code_lock.erl:2: Warning: undefined callback function handle_event/3
(behaviour 'gen_fsm')
./code_lock.erl:2: Warning: undefined callback function handle_info/3
(behaviour 'gen_fsm')
./code_lock.erl:2: Warning: undefined callback function
handle_sync_event/4 (behaviour 'gen_fsm')
./code_lock.erl:2: Warning: undefined callback function terminate/3
(behaviour 'gen_fsm')
error

-dae



More information about the erlang-questions mailing list