[erlang-questions] Erlang Core problem

Henrique Ferreiro García <>
Fri May 9 19:17:30 CEST 2008


Hello,

I have a problem when compiling from Core:

$ erlc +to_core list.erl
$ erlc +from_core list.core
./list.core:21: syntax error before: LITERAL

Looking at the Core Erlang language specification, there doesn't seem to
exist such a construction.

Can anyone explain what is happening here?

-- 
Henrique Ferreiro García <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list.erl
Type: text/x-erlang
Size: 83 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080509/e64a7c91/attachment.bin>
-------------- next part --------------
module 'list' ['len'/1,
	       'module_info'/0,
	       'module_info'/1]
    attributes []
'len'/1 =
    %% Line 4
    fun (_cor0) ->
	case _cor0 of
	  <[_cor3|Xs]> when 'true' ->
	      let <_cor1> =
		  apply 'len'/1
		      (Xs)
	      in  call 'erlang':'+'
		      (1, _cor1)
	  %% Line 5
	  <[]> when 'true' ->
	      0
	  ( <_cor2> when 'true' ->
		primop 'match_fail'
		    ({'function_clause',_cor2})
	    -| LITERAL<[compiler_generated]> )
	end
'module_info'/0 =
    fun () ->
	call 'erlang':'get_module_info'
	    ('list')
'module_info'/1 =
    fun (_cor0) ->
	call 'erlang':'get_module_info'
	    ('list', _cor0)
end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta ? unha parte de mensaxe asinada	dixitalmente
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080509/e64a7c91/attachment-0001.bin>


More information about the erlang-questions mailing list