Skip to content

Commit

Permalink
add SaC compiler to webui
Browse files Browse the repository at this point in the history
  • Loading branch information
hv15 committed Jan 30, 2022
1 parent 4a1f83e commit 86f5a24
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/languages.dhall
Expand Up @@ -1029,6 +1029,28 @@ in [ { id = "assembly"
}
] : List Book
}
, { id = "sac"
, name = "Single-Assignment C"
, logoName = "sac"
, fileExtension = "sac"
, editorConfig =
{ defaultFilename = "main.sac"
, mode = "ace/mode/sac"
, useSoftTabs = True
, softTabSize = 4
, exampleCode =
''
int main () {
StdIO::show ("Hello World!);
return 0;
}''
}
, runConfig = Some
{ containerImage = "glot/sac:latest"
, runCommand = "sac2c -t seq -o a.out main.sac && ./a.out"
}
, books = [] : List Book
}
, { id = "rust"
, name = "Rust"
, logoName = "rust"
Expand Down
42 changes: 42 additions & 0 deletions static/img/sac.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/sac.svg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86f5a24

Please sign in to comment.