I have a tiny little problem :rolleyes:
Does anybody out there have experience in writing a parser for C header files? without using LibClang??
The only way for the little node editor to detect (and show tips like IntelliSense does) from variables and functions that aren’t exposed as UFUNCTION() and UPROPERTY() is me writing a header parser to collect those declarations… And oh boy this stuff is hard :
My autocomplete system is based on Reflection so anything not UProperty it can’t see (unless I parse declarations from a script’s header and manually inject the declaration into the sematics database), I’ve injected “Context” as a variable declaration of type *UMagicNode *class into the semantics database just to see if that would work and seems like the “Class Pointer Parser” is working fine, it now understands that “Context” is a variable of type UMagicNode *class declared in body of Execute function, but oh boy…
Parsing header files without any reflection data is going to be far from easy:
Yep, working just fine; testing again I’ve injected “_X” as if it was a variable declaration of AActor* and the thingy found it.
Now I just need a header parsing algorithm >.<