# argee

> 📘 About the package 📘 This is the official interpreter for the rg language. Make sure to star the github repository!

Latest version **1.0.5** (published 2022-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install argee
pnpm add argee
yarn add argee
bun add argee
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-10-28 |
| First published | 2022-10-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | ranigiterman |
| Keywords | programming, language, js, rg |

## Links

- npm: https://www.npmjs.com/package/argee
- Repository: https://github.com/RaniGiterman/rg
- Homepage: https://github.com/RaniGiterman/rg#readme
- Issues: https://github.com/RaniGiterman/rg/issues
- npm.io page: https://npm.io/package/argee

## Dependencies (1)

- [dotenv](https://npm.io/package/dotenv.md) ^16.0.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-10-28
- 1.0.4 — 2022-10-28
- 1.0.3 — 2022-10-27
- 1.0.2 — 2022-10-27
- 1.0.1 — 2022-10-27
- 1.0.0 — 2022-10-27

## README

<h1>
 📘 About the package 📘
</h1>
This is the official interpreter for the rg language.
<br>
Make sure to star the github repository!

<h1>
 💙 Get started 💙
</h1>

After installing, create a `.env` file, and specify the path to your .rg file.
Your `.env` file should have something similiar to:
`FILE=./main.rg`
<br>

Now let's code some RG!
Here's an implementation of the classic fizzbuzz coding problem in rg:

```js
i = 1

@for $i <= 100; i = $i + 1
   state = ""

   @if $i % 3 == 0 && $i % 5 == 0
       print("FizzBuzz")
       state = "yes"
   @fi

   @if $i % 3 == 0 && !$state
       print("Fizz")
       state = "yes"
   @fi

   @if $i % 5 == 0 && !$state
       print("Buzz")
       state = "yes"
   @fi

   @if !$state
       print($i)
   @fi
@rof
```

To get the value of a variable, write a dollar sign ($), then the name of the variable.

To run the file, run the following from the root of your project: `node node_modules/argee/interpreter.js`

<h1> 
 🔵 About RG 🔵
</h1>

- nested for loops and nested ifs are not supported.
  <br>
- If you do write them, you will most likely receive an unexpected result, if not a compile error.
  <br>
- There is no such thing as else or else-ifs, as rg encourages you to confidently state all possible conditions.

<br>
rg inspires to be yet another language you can add to your arsenal of skills and programming languages, then forget about it and move on in life.
<br>
rg's interpreter is written in Javascript, making it one of the slowest languages of all time.

<h1>
💎 Installation 💎
</h1>

```
$ npm i argee
```

---
_Source: https://npm.io/package/argee · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
