Created
June 24, 2019 07:51
-
-
Save joseoliv/f364ba67c0d07bdf711eb4cfebe4ff84 to your computer and use it in GitHub Desktop.
afti_dsa_test(MetSig,UMS,Ret).myan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var String funcName; | |
func afti_beforeMethodCodeList { | |
return [ [. MetSig, "fp = \"c\";".], [. UMS, "unaryReturn = Ret;" .] ]; | |
} | |
func afti_codeToAdd { | |
var java.lang.String ssi = "func succ: Int n -> Int"; | |
var String s = ssi; | |
return [. "func succ: Int n -> Int = n + 1;", s .]; | |
} | |
func dsa_codeToAdd { | |
var String s = compiler getEnv getCurrentProgramUnit getName;; | |
return "nowExist = 5; \n" ++ "currentProgramUnitName = \"" ++ s ++ "\";\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment