Web content update. (0.41.8)
This commit is contained in:
parent
1016ebab51
commit
9698074279
9 changed files with 42 additions and 58 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue