Author | Jakob Wakeling <[email protected]> |
Date | 2021-09-22 15:16:40 |
Commit | 8c4b7796549fd132e0679b64502dbe96830c33fe |
Parent | f9cfead4e2e097b074e715d0d7e2a2631f1228be |
meta: Add influences to README
Diffstat
M | README.md | | | 6 | +++++- |
M | examples/main.g | | | 2 | +- |
2 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md index e699f66..8821648 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # The G Programming Language A modern alternative to **C** intended to be fast, simple, and pleasant. +Influenced by **C**, **C++**, **Odin**, and **Rust**. Note that at present, **G** is highly unstable will certainly change. @@ -9,12 +10,14 @@ Note that at present, **G** is highly unstable will certainly change. ```g import "std:io"; -main :: proc() -> (sint) { +main :: proc() -> s32 { io.print("Hello, World!\n"); return 0; } ``` +*Note that this example will not currently compile.* + ## Usage **G** is being developed on x86-64 Linux with Clang, and is untested elsewhere. diff --git a/examples/main.g b/examples/main.g index a2d30e0..c36b90e 100644 --- a/examples/main.g +++ b/examples/main.g @@ -1 +1 @@ -main :: proc() -> s64 { return 1; } +main :: proc() -> s32 { return 1; }