mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-08 17:15:45 +00:00
Change to onedev
This commit is contained in:
2
Templates/compiletool/.crossarchiveignore
Normal file
2
Templates/compiletool/.crossarchiveignore
Normal file
@@ -0,0 +1,2 @@
|
||||
bin
|
||||
obj
|
||||
16
Templates/compiletool/cross.json
Normal file
16
Templates/compiletool/cross.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "Tesses.CrossLang.Template.CompileTool",
|
||||
"version": "1.0.0.0-prod",
|
||||
"info": {
|
||||
"maintainer": "Mike Nolan",
|
||||
"type": "template",
|
||||
"repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
|
||||
"homepage": "https://crosslang.tesseslanguage.com/",
|
||||
"license": "MIT",
|
||||
"template_name": "compiletool",
|
||||
"template_info": {
|
||||
"type": "compile_tool"
|
||||
},
|
||||
"template_ignored_files": ["bin","obj"]
|
||||
}
|
||||
}
|
||||
11
Templates/compiletool/src/main.tcross
Normal file
11
Templates/compiletool/src/main.tcross
Normal file
@@ -0,0 +1,11 @@
|
||||
func RunTool(cfg)
|
||||
{
|
||||
//cfg.Project is the project Subdirfilesystem
|
||||
//cfg.ProjectInfo is the info property parsed from the cross.json file in project root
|
||||
cfg.GeneratedSource.Add({
|
||||
Source = "func times(a,b){return a * b;}",
|
||||
FileName = "times.tcross"
|
||||
});
|
||||
|
||||
//this runs with full access to vm so be careful when allowing these
|
||||
}
|
||||
Reference in New Issue
Block a user