Fixes for cppfront (#4076)

* Rename cppx_cppfront to cpp2_cppfront
* Add some blurb about the compiler
* Some syntax highlighting
* Better output highlighting
* Some form of line tracking and filtering
This commit is contained in:
Matt Godbolt
2022-09-20 07:42:41 -05:00
committed by GitHub
parent 377c907af4
commit a8a666aeac
12 changed files with 199 additions and 46 deletions

View File

@@ -0,0 +1,17 @@
#include <iostream>
#include <string>
name: () -> std::string = {
s: std::string = "world";
decorate(s);
return s;
}
decorate: (inout s: std::string) = {
s = "[" + s + "]";
}
auto main() -> int {
// name();
std::cout << "Hello " << name() << "\n";
}