From 4ef81eec8650070a8df8d103cdfb95c57ab84e09 Mon Sep 17 00:00:00 2001 From: liuweiwei Date: Wed, 6 Nov 2024 08:51:54 +0800 Subject: [PATCH] add hello_world demo --- .gitignore | 8 ++++++++ samples/hello_world/main.cj | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100644 samples/hello_world/main.cj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45ff791 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# MSVC Windows builds of cjc generate these, which store debugging information +*.cjo +*.exe +*.bchir2 +target/ +cjpm.lock +.vscode/ +.cache/ \ No newline at end of file diff --git a/samples/hello_world/main.cj b/samples/hello_world/main.cj new file mode 100644 index 0000000..95affde --- /dev/null +++ b/samples/hello_world/main.cj @@ -0,0 +1,5 @@ +// main函数最先执行 +main() { + // 打印Hello World! + println("Hello World!"); +} \ No newline at end of file