-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from Flipez/release-0-19-1
Release 0.19.1
- Loading branch information
Showing
36 changed files
with
2,070 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# HTTP | ||
|
||
|
||
|
||
|
||
## Module Function | ||
|
||
### new() | ||
> Returns `HTTP` | ||
Creates a new instance of HTTP | ||
|
||
|
||
|
||
|
||
## Properties | ||
| Name | Value | | ||
| ---- | ----- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# IO | ||
|
||
|
||
|
||
|
||
## Module Function | ||
|
||
### open(STRING, STRING, STRING) | ||
> Returns `FILE` | ||
Opens a file pointer to the file at the path, mode and permission can be set optionally. | ||
|
||
|
||
```js | ||
🚀 > IO.open("main.go", "r", "0644") | ||
=> <file:main.go> | ||
``` | ||
|
||
|
||
|
||
## Properties | ||
| Name | Value | | ||
| ---- | ----- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# JSON | ||
|
||
|
||
|
||
|
||
## Module Function | ||
|
||
### parse(STRING) | ||
> Returns `HASH` | ||
Takes a STRING and parses it to a HASH or ARRAY. Numbers are always FLOAT. | ||
|
||
|
||
```js | ||
🚀 > JSON.parse('{"test": 123}') | ||
=> {"test": 123.0} | ||
🚀 > JSON.parse('["test", 123]') | ||
=> ["test", 123.0] | ||
``` | ||
|
||
|
||
|
||
## Properties | ||
| Name | Value | | ||
| ---- | ----- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,269 @@ | ||
# Math | ||
|
||
|
||
|
||
|
||
## Module Function | ||
|
||
### abs(FLOAT) | ||
> Returns `FLOAT` | ||
|
||
|
||
|
||
|
||
### acos(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the arccosine, in radians, of the argument | ||
|
||
|
||
```js | ||
🚀 > Math.acos(1.0) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
### asin(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the arcsine, in radians, of the argument | ||
|
||
|
||
```js | ||
🚀 > Math.asin(0.0) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
### atan(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the arctangent, in radians, of the argument | ||
|
||
|
||
```js | ||
🚀 > Math.atan(0.0) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
### ceil(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the least integer value greater or equal to the argument | ||
|
||
|
||
```js | ||
🚀 > Math.ceil(1.49) | ||
=> 2.0 | ||
``` | ||
|
||
|
||
### copysign(FLOAT, FLOAT) | ||
> Returns `FLOAT` | ||
Returns a value with the magnitude of first argument and sign of second argument | ||
|
||
|
||
```js | ||
🚀 > Math.copysign(3.2, -1.0) | ||
=> -3.2 | ||
``` | ||
|
||
|
||
### cos(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the cosine of the radion argument | ||
|
||
|
||
```js | ||
🚀 > Math.cos(Pi/2) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
### exp(FLOAT) | ||
> Returns `FLOAT` | ||
Returns e**argument, the base-e exponential of argument | ||
|
||
|
||
```js | ||
🚀 > Math.exp(1.0) | ||
=> 2.72 | ||
``` | ||
|
||
|
||
### floor(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the greatest integer value less than or equal to argument | ||
|
||
|
||
```js | ||
🚀 > Math.floor(1.51) | ||
=> 1.0 | ||
``` | ||
|
||
|
||
### log(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the natural logarithm of argument | ||
|
||
|
||
```js | ||
🚀 > Math.log(2.7183) | ||
=> 1.0 | ||
``` | ||
|
||
|
||
### log10(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the decimal logarithm of argument | ||
|
||
|
||
```js | ||
🚀 > Math.log(100.0) | ||
=> 2.0 | ||
``` | ||
|
||
|
||
### log2(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the binary logarithm of argument | ||
|
||
|
||
```js | ||
🚀 > Math.log2(256.0) | ||
=> 8.0 | ||
``` | ||
|
||
|
||
### max(FLOAT, FLOAT) | ||
> Returns `FLOAT` | ||
Returns the larger of the two numbers | ||
|
||
|
||
```js | ||
🚀 > Math.max(5.0, 10.0) | ||
=> 10.0 | ||
``` | ||
|
||
|
||
### min(FLOAT, FLOAT) | ||
> Returns `FLOAT` | ||
Returns the smaller of the two numbers | ||
|
||
|
||
```js | ||
🚀 > Math.min(5.0, 10.0) | ||
=> 5.0 | ||
``` | ||
|
||
|
||
### pow(FLOAT, FLOAT) | ||
> Returns `FLOAT` | ||
Returns argument1**argument2, the base-argument1 exponential of argument2 | ||
|
||
|
||
```js | ||
🚀 > Math.pow(2.0, 3.0) | ||
=> 8.0 | ||
``` | ||
|
||
|
||
### rand() | ||
> Returns `FLOAT` | ||
Returns a pseudo-random number in the half-open interval [0.0, 1.0]. | ||
|
||
|
||
```js | ||
🚀 > Math.rand() | ||
=> 0.6046602879796196 | ||
``` | ||
|
||
|
||
### remainder(FLOAT, FLOAT) | ||
> Returns `FLOAT` | ||
Returns the IEEE 754 floating-point remainder of argument1/argument2 | ||
|
||
|
||
```js | ||
🚀 > Math.remainder(100.0, 30.0) | ||
=> 10.0 | ||
``` | ||
|
||
|
||
### round(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the nearest integer, rounding half away from zero | ||
|
||
|
||
```js | ||
🚀 > Math.round(73.3) | ||
=> 73.0 | ||
``` | ||
|
||
|
||
### sin(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the sine of the radion argument | ||
|
||
|
||
```js | ||
🚀 > Math.sin(Pi) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
### sqrt(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the square root of argument | ||
|
||
|
||
```js | ||
🚀 > Math.sqrt(3.0 * 3.0 + 4.0 * 4.0) | ||
=> 5.0 | ||
``` | ||
|
||
|
||
### tan(FLOAT) | ||
> Returns `FLOAT` | ||
Returns the tangent of the radion argument | ||
|
||
|
||
```js | ||
🚀 > Math.tan(0.0) | ||
=> 0.0 | ||
``` | ||
|
||
|
||
|
||
## Properties | ||
| Name | Value | | ||
| ---- | ----- | | ||
| E | 2.718281828459045 | | ||
| Ln10 | 2.302585092994046 | | ||
| Ln2 | 0.6931471805599453 | | ||
| Log10E | 0.4342944819032518 | | ||
| Log2E | 1.4426950408889634 | | ||
| Phi | 1.618033988749895 | | ||
| Pi | 3.141592653589793 | | ||
| Sqrt2 | 1.4142135623730951 | | ||
| SqrtE | 1.6487212707001282 | | ||
| SqrtPhi | 1.272019649514069 | | ||
| SqrtPi | 1.772453850905516 | |
Oops, something went wrong.
40839b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rocket-lang-play – ./wasm
rocket-lang-play.vercel.app
play.rocket-lang.org
rocket-lang-play-flipez.vercel.app
rocket-lang-play-git-main-flipez.vercel.app
40839b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rocket-lang – ./docs
rocket-lang.vercel.app
rocket-lang-git-main-flipez.vercel.app
rocket-lang-flipez.vercel.app
rocket-lang.org
www.rocket-lang.org