Open rebcabin opened 1 year ago
I now believe that the actual layout is
(ExternalSymbol
2 ;; symbol-table-id of parent symbol-table
pow/__lpython_overloaded_0__pow ;; name
6 ;; symbol-table-ide of external symbol-table
__lpython_overloaded_0__pow ;; <~~~~~~~ This element is not specified!
lpython_builtin ;; module-name
[] ;; <~~~~~~~ This is probably the "scope_names"
__lpython_overloaded_0__pow ;; original name
Public ;; access
)
The spec for
ExternalSymbol
in ASR.asdl states:note particularly
identifier* scope_names
. This should be a vector of names, possibly empty, as in[lpython_builtin]
. An example generated fromtests/expr7.py
does not match this spec:Looks like there is an extra element in
ExternalSymbol
that is not in the spec.