[erlang-questions] Parsing Objective C type encodings
Thu May 31 23:47:03 CEST 2007
"Joe Armstrong" <erlang@REDACTED> writes:
> It would be nice to build something like F-Script or RubyCocoa only in Erlang
> Is there any Erlang code for obtaining and parsing Objective C type encodings?
> Any progress since
> Is it actually necessary to parse the objective C header files? -
> won't run-time introspection
> be sufficient.
I've written an objc runtime type signature parser in common lisp
which I could port to yecc if you'd like.
It will give you enough information to safely call objc_msg_send (you
can tell which arguments should be objects, classes, c-strings, ...),
but not enough to catch errors that might occur if you pass the wrong
type of object (that information is only available in the header
Has someone written erlang bindings for the objective-c runtime
Bindings to these methods allow you to inspect all the loaded
classes/methods, create instances, new classes, new methods, call methods etc.
has some information on the type signatures the objc runtime uses.
More information about the erlang-questions