So I tried multiple directions:
expand is nice and is an important stage of compilation. But I’m not sure what happens after that and where to insert argument count, if anywhere.
- Bytecode inspection is a good direction (I’m ready to parse that, if necessary!)
- However, it’s not clear how to get bytecode for a procedure.
- Built-in procedures also have argument specs, like
'1', '2', 'm', 'b' etc. so these might be fetched somehow?
Any pointers?
So I tried multiple directions:
expandis nice and is an important stage of compilation. But I’m not sure what happens after that and where to insert argument count, if anywhere.'1','2','m','b'etc. so these might be fetched somehow?Any pointers?