mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-10 06:48:01 -05:00
add support for executing C++ code (#212)
This commit is contained in:
@@ -27,6 +27,7 @@ const (
|
||||
Rust = "rust"
|
||||
Java = "java"
|
||||
Julia = "julia"
|
||||
Cpp = "cpp"
|
||||
)
|
||||
|
||||
// Languages is a map of supported languages with their extensions and commands
|
||||
@@ -81,4 +82,11 @@ var Languages = map[string]Language{
|
||||
Extension: "jl",
|
||||
Commands: cmds{{"julia", "<file>"}},
|
||||
},
|
||||
Cpp: {
|
||||
Extension: "cpp",
|
||||
Commands: cmds{
|
||||
{"g++", "-std=c++20", "-o", "<path>/<name>.run", "<file>"},
|
||||
{"<path>/<name>.run"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user