From 435b5da7e6bb93c6bb438df3b3232847652ee3d2 Mon Sep 17 00:00:00 2001 From: "l.feng" <43399351+msclock@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:33:43 +0800 Subject: [PATCH] chore: basic syntax Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com> --- README.md | 7 +++++++ src/regressoin/src/main.cpp2 | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 11abbc4..b52abeb 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,13 @@ Practice based on cppfront +## Cpp2 + +- Repository: +- Documentation: + + + ## License MIT License, for more details, see the [LICENSE](https://github.com/msclock/cppfront-practice/blob/master/LICENSE) file. diff --git a/src/regressoin/src/main.cpp2 b/src/regressoin/src/main.cpp2 index 11ada2e..29b751d 100644 --- a/src/regressoin/src/main.cpp2 +++ b/src/regressoin/src/main.cpp2 @@ -1,5 +1,12 @@ +std: namespace = { + println: (args...) = { + (std::cout << ... << args) << "\n"; + } +} + hello: (msg: std::string_view) = { std::cout << "Hello, (msg)$!\n"; + std::println(msg); } main: () = {