Web content update. (0.41.8)
|
|
@ -1,6 +1,6 @@
|
|||
<header class="site-header">
|
||||
<div class="wrapper">
|
||||
<a class="site-title" href="/"><img src="/images/fun.png" alt="{{ site.title }}" style="border-radius: 12px; margin: 9px 0 18px 0" title="Fun"></a>
|
||||
<a class="site-title" href="/"><img src="/images/fun.png" alt="{{ site.title }}" style="border-radius: 12px; margin: 0 0 0 -6px; padding: 0;" title="Fun"></a>
|
||||
<nav class="site-nav" style="border-radius:8px;">
|
||||
<a href="#" class="menu-icon"><span>≡</span></a>
|
||||
<div class="trigger">
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
<li><a class="page-link" href="/community/" style="text-decoration:none;" title="Community">Community</a></li>
|
||||
<li><a class="page-link" href="/contact/" style="text-decoration:none;" title="Contact">Contact</a></li>
|
||||
<li><a class="page-link" href="/documentation/" style="text-decoration:none;" title="Documentation">Documentation</a></li>
|
||||
<li><a class="page-link" href="/documentation/faq/" style="text-decoration:none;" title="FAQ">FAQ</a></li>
|
||||
<li><a class="page-link" href="/faq/" style="text-decoration:none;" title="FAQ">FAQ</a></li>
|
||||
<li><a class="page-link" href="/download/" style="text-decoration:none;" title="Download">Download</a></li>
|
||||
<!--
|
||||
https://www.w3schools.com/howto/howto_js_toggle_dark_mode.asp
|
||||
|
|
|
|||
|
|
@ -1,44 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
published: true
|
||||
noToc: false
|
||||
noComments: false
|
||||
noDate: false
|
||||
title: FAQ
|
||||
subtitle: Frequently asked questions and quick answers.
|
||||
description: Frequently asked questions and quick answers.
|
||||
permalink: /documentation/faq/
|
||||
lang: en
|
||||
tags:
|
||||
- answers
|
||||
- asked
|
||||
- faq
|
||||
- frequently
|
||||
- questions
|
||||
- quick
|
||||
---
|
||||
|
||||
Answers to common questions.
|
||||
|
||||
## I built Fun but includes aren't found
|
||||
|
||||
Set `FUN_LIB_DIR` to the repository's `./lib` directory when running without installation:
|
||||
<pre>FUN_LIB_DIR=./lib ./build/fun examples/hello.fun</pre>
|
||||
|
||||
See [Includes](../includes/).
|
||||
|
||||
## How do I start the REPL?
|
||||
|
||||
Run `fun -i` (or run `fun` without a script, depending on version). See [REPL](../repl/).
|
||||
|
||||
## Which build target should I use?
|
||||
|
||||
Use the aggregate `build` target to build `fun`, `fun_test`, and `test_opcodes`. See [Build](../build/).
|
||||
|
||||
## Where are the standard libraries?
|
||||
|
||||
Under [https://git.xw3.org/fun/fun/src/branch/main/lib](https://git.xw3.org/fun/fun/src/branch/main/lib){:class="git"}. See [stdlib](../stdlib/) for an overview.
|
||||
|
||||
## Where can I find internals and opcodes?
|
||||
|
||||
Browse [https://git.xw3.org/fun/fun/src/branch/main/src/vm](https://git.xw3.org/fun/fun/src/branch/main/src/vm/) and [Internals](../internals/) / [Opcodes](../opcodes/).
|
||||
|
|
@ -102,7 +102,7 @@ This document provides an overview of the available VM opcodes implemented under
|
|||
## Bitwise (uint32)
|
||||
|
||||
- OP_BAND: Bitwise AND; pops b, a; pushes a & b.
|
||||
- OP_BOR: Bitwise OR; pops b, a; pushes a | b.
|
||||
- OP_BOR: Bitwise OR; pops b, a; pushes a \| b.
|
||||
- OP_BXOR: Bitwise XOR; pops b, a; pushes a ^ b.
|
||||
- OP_BNOT: Bitwise NOT; pops a; pushes ~a.
|
||||
- OP_SHL: Logical left shift; pops shift, value; pushes value << shift.
|
||||
|
|
@ -112,7 +112,7 @@ This document provides an overview of the available VM opcodes implemented under
|
|||
|
||||
## Math
|
||||
|
||||
- OP_ABS: Absolute value; pops x; pushes |x|.
|
||||
- OP_ABS: Absolute value; pops x; pushes \|x\|.
|
||||
- OP_CEIL: Ceiling; pops x; pushes ceil(x).
|
||||
- OP_FLOOR: Floor; pops x; pushes floor(x).
|
||||
- OP_ROUND: Round; pops x; pushes round(x).
|
||||
|
|
|
|||
|
|
@ -1,17 +1,44 @@
|
|||
---
|
||||
layout: page
|
||||
published: true
|
||||
noToc: true
|
||||
noToc: false
|
||||
noComments: false
|
||||
noDate: false
|
||||
title: FAQ
|
||||
subtitle: Frequently Asked Questions
|
||||
description: Frequently Asked Questions (FAQ)
|
||||
subtitle: Frequently asked questions and quick answers.
|
||||
description: Frequently asked questions and quick answers.
|
||||
permalink: /faq/
|
||||
lang: en
|
||||
tags:
|
||||
- answers
|
||||
- asked
|
||||
- faq
|
||||
- about
|
||||
- frequently
|
||||
- questions
|
||||
- quick
|
||||
---
|
||||
|
||||
## Why Fun?
|
||||
Answers to common questions.
|
||||
|
||||
Because of fun... ;)
|
||||
## I built Fun but includes aren't found
|
||||
|
||||
Set `FUN_LIB_DIR` to the repository's `./lib` directory when running without installation:
|
||||
<pre>FUN_LIB_DIR=./lib ./build/fun examples/hello.fun</pre>
|
||||
|
||||
See [Includes](/documentation/includes/).
|
||||
|
||||
## How do I start the REPL?
|
||||
|
||||
Run `fun -i` (or run `fun` without a script, depending on version). See [REPL](/documentation/repl/).
|
||||
|
||||
## Which build target should I use?
|
||||
|
||||
Use the aggregate `build` target to build `fun`, `fun_test`, and `test_opcodes`. See [Build](/documentation/build/).
|
||||
|
||||
## Where are the standard libraries?
|
||||
|
||||
Under [https://git.xw3.org/fun/fun/src/branch/main/lib](https://git.xw3.org/fun/fun/src/branch/main/lib){:class="git"}. See [stdlib](/documentation/stdlib/) for an overview.
|
||||
|
||||
## Where can I find internals and opcodes?
|
||||
|
||||
Browse [https://git.xw3.org/fun/fun/src/branch/main/src/vm](https://git.xw3.org/fun/fun/src/branch/main/src/vm/) and [Internals](/documentation/internals/) / [Opcodes](/documentation/opcodes/).
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |