It seems apparent that the CCOMP and XCOMP relations are what I need for nested scopes. I have been using XCOMP for creating "" constructions for use as DirectObjects, but that construction might as well just be a nested statement instead.
Unfortunately, the nested statements are hacked into the component linking process and it's really not working out. I suggest re-doing it by finding CCOMP and XCOMP scopes in the very beginning and using these scopes to separate statements. If any of the statements that are separated by the scope still have some connection, then this can be used to create nested statements.
It seems apparent that the CCOMP and XCOMP relations are what I need for nested scopes. I have been using XCOMP for creating " " constructions for use as DirectObjects, but that construction might as well just be a nested statement instead.
Unfortunately, the nested statements are hacked into the component linking process and it's really not working out. I suggest re-doing it by finding CCOMP and XCOMP scopes in the very beginning and using these scopes to separate statements. If any of the statements that are separated by the scope still have some connection, then this can be used to create nested statements.