Skip to content

Fails to parse Core Erlang generated with OTP18+ #3

@srenatus

Description

@srenatus

This (empty) example module,

-module(example).

with 17.5, c(example, to_core) gives

module 'example' ['module_info'/0,
          'module_info'/1]
    attributes []
'module_info'/0 =
    fun () ->
    call 'erlang':'get_module_info'
        ('example')
'module_info'/1 =
    fun (_cor0) ->
    call 'erlang':'get_module_info'
        ('example', _cor0)
end

But with 18, we get

module 'example' ['module_info'/0,
                  'module_info'/1]
    attributes []
'module_info'/0 =
    ( fun () ->
          ( call ( 'erlang'
                   -| ['compiler_generated'] ):( 'get_module_info'
                                                 -| ['compiler_generated'] )
                (( 'example'
                   -| ['compiler_generated'] ))
            -| ['compiler_generated'] )
      -| ['compiler_generated'] )
'module_info'/1 =
    ( fun (( _cor0
             -| ['compiler_generated'] )) ->
          ( call ( 'erlang'
                   -| ['compiler_generated'] ):( 'get_module_info'
                                                 -| ['compiler_generated'] )
                (( 'example'
                   -| ['compiler_generated'] ), ( _cor0
                                                  -| ['compiler_generated'] ))
            -| ['compiler_generated'] )
      -| ['compiler_generated'] )
end

and this library is not able to parse that. (I think what I am really asking here, though, is: Is this still in use and maintained?)

Thanks for all the work you've put into this, by the way 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions