3 ms·
What I need for a metaprogramming tool is a code generator that uses CodeQL as input, then allows me to specify very terse AST manipulation/transformation func
by pizza 5y ago
What I need for a metaprogramming tool is a code generator that uses CodeQL as input, then allows me to specify very terse AST manipulation/transformation functions, then generate my output code for me.
The one real flaw about CodeQL imo is that they don’t let me generate code..
Like suppose I found a very nice library whose only fatal flaw was that it only wrote its output to files as opposed to general buffers/streams. And I had another library that was godawful but it had a very nice, modular, network streaming routine.
I want this:
from nice_library, awful_library
select
concat(nice_library_routine_upto_filwriting_entrypoint, awful_library_routine_networkIO_entrypoint)
It’s likely gonna need more information to make it possible but this is the sketch of my intent
In fact a gui like Scratch may be just the type of graphical user interface that would make this nice.. think colorful affordances that prevent you from writing a buggy codeql query and iterating pointlessly when everything could be visually typechecked. You could even call it Frankenstein :)
Would that become closer to reality with this?