Skip to content

Instantly share code, notes, and snippets.

@steinwaywhw
Created October 7, 2016 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinwaywhw/27d8fbb569cf178d08d9465aa92c741e to your computer and use it in GitHub Desktop.
Save steinwaywhw/27d8fbb569cf178d08d9465aa92c741e to your computer and use it in GitHub Desktop.
A draft build system for ATS on SublimeText
{
"cmd": ["patscc", "$file"],
"shell": false,
"selector": "source.ats",
"env": {
"PATH": "$PATH:<YOUR ATS BIN DIR>",
"PATSHOME": "<YOUR PATSHOME>"},
"file_regex": "^(.+): \\d+\\(line=(\\d+), offs=(\\d+)\\) -- \\d+\\(line=\\d+, offs=\\d+\\): (.+)",
"variants": [
{
"name": "Type Checking",
"cmd": ["patscc", "-tcats", "$file"]
},{
"name": "Compile with GC",
"cmd": ["patscc", "-DATS_MEMALLOC_LIBC", "$file"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment