If memory serves me right, Leopold Toetsch wrote: > Therefore these changes were necessary:
Is there any other way to feed imcc code other than via writing to a file and running it ?... My work needs a lot of string substitutions to work with the new IMCC ... Dan was saying something like a C interface to IMCC which bypasses the parser and lexer phases was possible ? (thankfully all I needed to fix could be done with a couple of regexps) > Languages involved: > - perl6 (P6C/IMCC) > - cola > these are adapted accordingly The problem grows as the number of languages supported increases ... I really would like something like this (shameless snitch) IMCC_Var *tempVar ; IMCC_Expr *expr; tempVar = IMCC_GenTempVar(code,type); expr = IMCC_GenAdd(code,myParam1,myParam2); IMCC_GenAssign(code,tempVar,expr); IMCC_GenIf(code,tempVar,thenStmt); IMCC_ReleaseTempVar(code,tempVar); IMCC_GenCode(code,fp); I know this is a lot more complicated than fprintf , but IMHO such an abstraction is worth it ... (any similarity to treecc's _create calls are purely intentional ... :-) Gopal -- The difference between insanity and genius is measured by success