From 72ca941321e90b040c387fd9d20651e5a755fd82 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Sat, 18 Dec 2021 13:45:57 -0700 Subject: [PATCH 1/6] =?UTF-8?q?use=20=F0=9F=91=8B=F0=9F=8C=8D=20as=20a=20"?= =?UTF-8?q?Hello=20World!"=20greeting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/guides/compile-and-run.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/guides/compile-and-run.md b/src/guides/compile-and-run.md index 2122aea..9c6b1d6 100644 --- a/src/guides/compile-and-run.md +++ b/src/guides/compile-and-run.md @@ -31,14 +31,14 @@ greeting. ``` ๐Ÿ ๐Ÿ‡ - ๐Ÿ˜€ ๐Ÿ”คHey!๐Ÿ”คโ—๏ธ + ๐Ÿ˜€ ๐Ÿ”ค๐Ÿ‘‹๐ŸŒ๐Ÿ”คโ—๏ธ ๐Ÿ‰ ``` Before analyzing this new code, weโ€™ll give it a try. ->!H You must have installed Emojicode to run the following commands. ->!H See [Installing Emojicode](install.html) if you havenโ€™t already. +> !H You must have installed Emojicode to run the following commands. +> !H See [Installing Emojicode](install.html) if you havenโ€™t already. Open a command-line and navigate to the directory containing `greeter.emojic`. Then run this command. @@ -55,10 +55,16 @@ is a native executable you can run like any other executable. Letโ€™s try: ./greeter ``` +You should see the following greeting output in the console: + +``` +๐Ÿ‘‹๐ŸŒ +``` + Congratulations! Youโ€™ve written your first program. But how does it actually work? -Itโ€™s simple: `๐Ÿ”คHey!๐Ÿ”ค` is a string literal. Every character between +Itโ€™s simple: `๐Ÿ”ค๐Ÿ‘‹๐ŸŒ๐Ÿ”ค` is a string literal. Every character between two ๐Ÿ”ค is then part of the string. Then we call the ๐Ÿ˜€ method on this string. And guess what, it prints the string From 656e8a07cdfd9b5e6e1f243b5af6d71e4557f7b7 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Sat, 18 Dec 2021 14:33:36 -0700 Subject: [PATCH 2/6] =?UTF-8?q?add=20=F0=9F=91=8B=F0=9F=8C=8D=20to=20other?= =?UTF-8?q?=20places=20where=20Hello=20World=20happens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/guides/install.md | 28 +++++++++++++--------------- src/pages/index.mustache | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/guides/install.md b/src/guides/install.md index a609637..d9414e4 100644 --- a/src/guides/install.md +++ b/src/guides/install.md @@ -64,7 +64,7 @@ Youโ€™re ready to go! Try this, for example: ```bash echo '๐Ÿ ๐Ÿ‡ - ๐Ÿ˜€ ๐Ÿ”คHello World!๐Ÿ”คโ—๏ธ + ๐Ÿ˜€ ๐Ÿ”ค๐Ÿ‘‹๐ŸŒ๐Ÿ”คโ—๏ธ ๐Ÿ‰' > hello.emojic ./emojicodec hello.emojic # Compile it ./hello # Run it! @@ -91,20 +91,20 @@ export CXX=clang++ # or g++ or whatever your compiler is ## Manual Installation 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases) for your - system and extract the tar file. For instance: + system and extract the tar file. For instance: - ```bash - tar -xzf Emojicode-VERSION-YOUR-PLATFORM.tar.gz - ``` +```bash +tar -xzf Emojicode-VERSION-YOUR-PLATFORM.tar.gz +``` 2. Run the `install.sh` script in the extracted directory: - ```bash - cd Emojicode-VERSION-YOUR-PLATFORM - ./install.sh - ``` +```bash +cd Emojicode-VERSION-YOUR-PLATFORM +./install.sh +``` - You can find more information about the installer above. +You can find more information about the installer above. ### Very Manual Installation @@ -112,14 +112,15 @@ If the installer doesnโ€™t work for you or you simply donโ€˜t want to use it, yo can also copy things into place yourself. 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases) - for your system and extract the tar file. + for your system and extract the tar file. 2. Copy `emojicodec` (the compiler executable) to the place you keep executables. -3. Copy the contents of the `packages` somewhere where the +3. Copy the contents of the `packages` somewhere where the Emojicode Compiler can find it. One of these locations is `/usr/local/EmojicodePackages`. See [Package Search Paths](../reference/compiler.html#package-search-paths) for more information. + 4. Finally, you should copy the contents of `include` into a directory named `emojicode` in your C++ compilerโ€™s search path. @@ -127,10 +128,7 @@ can also copy things into place yourself. ## Building from Source - Instruction to build Emojicode from source can be found in the [GitHub repository](https://github.com/emojicode/emojicode/). - - diff --git a/src/pages/index.mustache b/src/pages/index.mustache index 36f701b..14f4265 100644 --- a/src/pages/index.mustache +++ b/src/pages/index.mustache @@ -89,7 +89,7 @@
๐Ÿ ๐Ÿ‡
-  ๐Ÿ˜€ ๐Ÿ”คHello World!๐Ÿ”คโ—๏ธ
+  ๐Ÿ˜€ ๐Ÿ”ค๐Ÿ‘‹๐ŸŒ๐Ÿ”คโ—๏ธ
 ๐Ÿ‰
From 2d171dd3be3e3c9148c8696d6bf3be0356682025 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Fri, 16 Dec 2022 08:48:10 -0700 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=91=8B=F0=9F=8C=8D=20take=20two?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/guides/compile-and-run.md | 4 ++-- src/guides/install.md | 19 ++++++++++--------- src/pages/index.mustache | 8 ++++++++ 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/guides/compile-and-run.md b/src/guides/compile-and-run.md index 9c6b1d6..6ffac3e 100644 --- a/src/guides/compile-and-run.md +++ b/src/guides/compile-and-run.md @@ -37,8 +37,8 @@ greeting. Before analyzing this new code, weโ€™ll give it a try. -> !H You must have installed Emojicode to run the following commands. -> !H See [Installing Emojicode](install.html) if you havenโ€™t already. +>!H You must have installed Emojicode to run the following commands. +>!H See [Installing Emojicode](install.html) if you havenโ€™t already. Open a command-line and navigate to the directory containing `greeter.emojic`. Then run this command. diff --git a/src/guides/install.md b/src/guides/install.md index d9414e4..ef7bba7 100644 --- a/src/guides/install.md +++ b/src/guides/install.md @@ -68,6 +68,7 @@ echo '๐Ÿ ๐Ÿ‡ ๐Ÿ‰' > hello.emojic ./emojicodec hello.emojic # Compile it ./hello # Run it! +# the text '๐Ÿ‘‹๐ŸŒ' should print to the console ``` ## Installing for Arch Linux @@ -91,18 +92,18 @@ export CXX=clang++ # or g++ or whatever your compiler is ## Manual Installation 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases) for your - system and extract the tar file. For instance: + system and extract the tar file. For instance: -```bash -tar -xzf Emojicode-VERSION-YOUR-PLATFORM.tar.gz -``` + ```bash + tar -xzf Emojicode-VERSION-YOUR-PLATFORM.tar.gz + ``` 2. Run the `install.sh` script in the extracted directory: -```bash -cd Emojicode-VERSION-YOUR-PLATFORM -./install.sh -``` + ```bash + cd Emojicode-VERSION-YOUR-PLATFORM + ./install.sh + ``` You can find more information about the installer above. @@ -112,7 +113,7 @@ If the installer doesnโ€™t work for you or you simply donโ€˜t want to use it, yo can also copy things into place yourself. 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases) - for your system and extract the tar file. + for your system and extract the tar file. 2. Copy `emojicodec` (the compiler executable) to the place you keep executables. diff --git a/src/pages/index.mustache b/src/pages/index.mustache index 14f4265..e3e4b55 100644 --- a/src/pages/index.mustache +++ b/src/pages/index.mustache @@ -87,6 +87,14 @@

Need to see a Hello World?

+
+
๐Ÿ ๐Ÿ‡
+  ๐Ÿ˜€ ๐Ÿ”คHello World!๐Ÿ”คโ—๏ธ
+๐Ÿ‰
+
+ +

Need to see it in only emoji?

+
๐Ÿ ๐Ÿ‡
   ๐Ÿ˜€ ๐Ÿ”ค๐Ÿ‘‹๐ŸŒ๐Ÿ”คโ—๏ธ

From 2d51ce5b5a271916880272ac55ec286b0429745c Mon Sep 17 00:00:00 2001
From: Joe Skeen 
Date: Fri, 16 Dec 2022 08:49:42 -0700
Subject: [PATCH 4/6] tidy up

---
 src/guides/install.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/guides/install.md b/src/guides/install.md
index ef7bba7..410dd1a 100644
--- a/src/guides/install.md
+++ b/src/guides/install.md
@@ -92,7 +92,7 @@ export CXX=clang++  # or g++ or whatever your compiler is
 ## Manual Installation
 
 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases) for your
-    system and extract the tar file. For instance:
+  system and extract the tar file. For instance:
 
   ```bash
   tar -xzf Emojicode-VERSION-YOUR-PLATFORM.tar.gz
@@ -105,7 +105,7 @@ export CXX=clang++  # or g++ or whatever your compiler is
   ./install.sh
   ```
 
-You can find more information about the installer above.
+  You can find more information about the installer above.
 
 ### Very Manual Installation
 
@@ -121,7 +121,6 @@ can also copy things into place yourself.
    Emojicode Compiler can find it.
 
    One of these locations is `/usr/local/EmojicodePackages`. See [Package Search Paths](../reference/compiler.html#package-search-paths) for more information.
-
 4. Finally, you should copy the contents of `include` into a directory named
    `emojicode` in your C++ compilerโ€™s search path.
 
@@ -132,4 +131,6 @@ can also copy things into place yourself.
 Instruction to build Emojicode from source can be found in the
 [GitHub repository](https://github.com/emojicode/emojicode/).
 
+
+
 

From 3a3fb6b56b43dcaf957a3539e685494e111c9dfc Mon Sep 17 00:00:00 2001
From: Joe Skeen 
Date: Fri, 16 Dec 2022 08:50:35 -0700
Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=A7=B9tidy=20up?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/guides/install.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/guides/install.md b/src/guides/install.md
index 410dd1a..b2888b6 100644
--- a/src/guides/install.md
+++ b/src/guides/install.md
@@ -113,11 +113,11 @@ If the installer doesnโ€™t work for you or you simply donโ€˜t want to use it, yo
 can also copy things into place yourself.
 
 1. [Download the prebuilt binaries](https://github.com/emojicode/emojicode/releases)
-    for your system and extract the tar file.
+  for your system and extract the tar file.
 
 2. Copy `emojicodec` (the compiler executable) to the place you keep executables.
 
-3. Copy the contents of the `packages` somewhere where the
+3. Copy the contents of the  `packages` somewhere where the
    Emojicode Compiler can find it.
 
    One of these locations is `/usr/local/EmojicodePackages`. See [Package Search Paths](../reference/compiler.html#package-search-paths) for more information.

From 4a7f5911c2d8fff0a2b8baf483eb1778d595e474 Mon Sep 17 00:00:00 2001
From: Joe Skeen 
Date: Fri, 16 Dec 2022 08:51:31 -0700
Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=A7=B9tidy=20up?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/guides/install.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/guides/install.md b/src/guides/install.md
index b2888b6..2de6f63 100644
--- a/src/guides/install.md
+++ b/src/guides/install.md
@@ -128,6 +128,7 @@ can also copy things into place yourself.
 
 ## Building from Source
 
+
 Instruction to build Emojicode from source can be found in the
 [GitHub repository](https://github.com/emojicode/emojicode/).