Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/guides/compile-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Open a command-line and navigate to the directory containing `greeter.emojic`.
Then run this command.
Expand All @@ -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
Expand Down
28 changes: 13 additions & 15 deletions src/guides/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -91,46 +91,44 @@ 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

If the installer doesn’t work for you or you simply don‘t want to use it, you
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.

The installer, for example, copies it to `/usr/local/include/emojicode`.

## Building from Source


Instruction to build Emojicode from source can be found in the
[GitHub repository](https://github.com/emojicode/emojicode/).



<script src="/static/js/magicinstall.js"></script>
2 changes: 1 addition & 1 deletion src/pages/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

<div class="hello-world__pre-container">
<pre class="hello-world__pre"><code>🏁 🍇
😀 🔤Hello World!🔤❗️
😀 🔤👋🌍🔤❗️
🍉</code></pre>
</div>
</div>
Expand Down