Exemple #1
0
func init() {
	var langVar langType
	var langEntry pogo.LanguageEntry
	langEntry.Language = langVar
	langEntry.InstructionLimit = 2048     /* 4k works for cs, 2k required for java & cpp */
	langEntry.SubFnInstructionLimit = 256 /* 256 required for php */
	langEntry.PackageConstVarName = "tardisgoHaxePackage"
	langEntry.HeaderConstVarName = "tardisgoHaxeHeader"
	langEntry.Goruntime = "github.com/tardisgo/tardisgo/haxe/haxegoruntime" // a string containing the location of the core language runtime functions delivered in Go

	langIdx = len(pogo.LanguageList)
	pogo.LanguageList = append(pogo.LanguageList, langEntry)
}
Exemple #2
0
func init() {
	var langVar langType
	var langEntry pogo.LanguageEntry
	langEntry.Language = langVar

	il := 1024 // 1024 is an internal Haxe C# limit (`lvregs_len < 1024`)

	langEntry.InstructionLimit = il      /* size before we make subfns */
	langEntry.SubFnInstructionLimit = il /* 256 required for php */
	langEntry.PackageConstVarName = "tardisgoHaxePackage"
	langEntry.HeaderConstVarName = "tardisgoHaxeHeader"
	langEntry.Goruntime = "haxegoruntime" // a string containing the location of the core language runtime functions delivered in Go
	langEntry.PseudoPkgPaths = []string{"github.com/tardisgo/tardisgo/haxe/hx"}
	langEntry.LineCommentMark = "//"
	langEntry.StatementTerminator = ";"
	langEntry.IgnorePrefixes = []string{"this.setPH("}
	langEntry.GOROOT = "/src/github.com/tardisgo/tardisgo/goroot/haxe/go1.4"
	langEntry.TgtDir = "tardis" // TODO move to the correct directory based on a command line argument

	pogo.LanguageList = append(pogo.LanguageList, langEntry)
}