Skip to content

Commit

Permalink
Merge pull request #295 from moonbitlang/zhiyuan/link-to-moon-doc
Browse files Browse the repository at this point in the history
change moon docs' link to moon's docs
  • Loading branch information
bzy-debug authored Sep 4, 2024
2 parents 02fdd86 + 9d27d2d commit d4df522
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 1,798 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/sync-json-schema.yml

This file was deleted.

91 changes: 0 additions & 91 deletions mod.schema.json

This file was deleted.

20 changes: 10 additions & 10 deletions moonbit-docs/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ For WebAssembly backend, it means that it will be executed **before** the instan
for JavaScript backend, it means that it will be executed during the importation stage.

There is another specialized function called `main` function. The `main` function is the main entrance of the program, and it will be executed after the initialization stage.
Only packages that are `main` packages can define such `main` function. Check out [build system tutorial](./build-system-tutorial.md) for detail.
Only packages that are `main` packages can define such `main` function. Check out [build system tutorial](https://moonbitlang.github.io/moon/) for detail.

The two functions above need to drop the parameter list and the return type.

Expand Down Expand Up @@ -592,14 +592,14 @@ let e = not(a)

MoonBit have integer type and floating point type:

| type | description | example |
| -------- | ----------------------------------------- | ------- |
| `Int` | 32-bit signed integer | `42` |
| `Int64` | 64-bit signed integer | `1000L` |
| `UInt` | 32-bit unsigned integer | `14U` |
| `UInt64` | 64-bit unsigned integer | `14UL` |
| `Double` | 64-bit floating point, defined by IEEE754 | `3.14` |
| `Float` | 32-bit floating point `(3.14 : Float)` |
| type | description | example |
| -------- | ------------------------------------------------------------------------------- | ------- |
| `Int` | 32-bit signed integer | `42` |
| `Int64` | 64-bit signed integer | `1000L` |
| `UInt` | 32-bit unsigned integer | `14U` |
| `UInt64` | 64-bit unsigned integer | `14UL` |
| `Double` | 64-bit floating point, defined by IEEE754 | `3.14` |
| `Float` | 32-bit floating point `(3.14 : Float)` |
| `BigInt` | represents numeric values larger than other types | `10000000000000000000000N` |

MoonBit also supports numeric literals, including decimal, binary, octal, and hexadecimal numbers.
Expand Down Expand Up @@ -2083,4 +2083,4 @@ Pragmas are annotations inside doc comments. They all take the form `/// @word .

## MoonBit's build system

The introduction to the build system is available at [MoonBit's Build System Tutorial](./build-system-tutorial.md).
The introduction to the build system is available at [MoonBit's Build System Tutorial](https://moonbitlang.github.io/moon/).
108 changes: 0 additions & 108 deletions moonbit-docs/docs/build-system-configuration.md

This file was deleted.

Loading

0 comments on commit d4df522

Please sign in to comment.