GithubHelp home page GithubHelp logo

drruisseau / uiua_fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uiua-lang/uiua

0.0 1.0 0.0 5.24 MB

A stack-based array programming language

Home Page: https://www.uiua.org

License: MIT License

Rust 98.08% CSS 1.30% Nix 0.09% HTML 0.53%

uiua_fork's Introduction

Uiua

Uiua (pronounced "wee-wuh") is a stack-based array programming language.

Documentation, examples, and an online interpreter can be found at uiua.org.

You can also check out the Discord server.

Installation

You can try the language without installing anything on the website.

If you want to install the interpreter locally, you will need to install it via Cargo. This requires Rust to be installed.

You can install with:

cargo install uiua

To enable audio output, enable the audio feature:

cargo install uiua --features audio

If you want audio on Linux, you may need to install some dependencies first:

apt install libasound2-dev libudev-dev pkg-config

Language Server

The interpreter has a built-in language server that implements the Language Server Protocol.

A language client extension is available for VSCode here.

The language client requires that the interpreter is installed locally and available on your PATH.

Formatter Configuration

You can configure Uiua's formatter by creating a file called .fmt.ua in the directory from which you run the interpreter. This configuration file is also a Uiua program.

Configuration options are specified by binding values to specific names.

Example with default values:

TrailingNewline ← 1
CommentSpaceAfterHash ← 1
MultilineIndent ← 2
CompactMultilineMode ← "auto"

The following configuration options are available:

TrailingNewline

Type: boolean

Default: 1

Whether to add a trailing newline to a file.

CommentSpaceAfterHash

Type: boolean

Default: 1

Whether to insert a space after a # in a comment if there is not one already.

MultilineIndent

Type: natural number

Default: 2

The number of spaces to indent each line of a multiline expression.

CompactMultilineMode

Type: one of "always", "never", or "auto"

Default: "auto"

How to format multiline expressions.

  • "always": Always format multiline expressions in compact mode.
  • "never": Never format multiline expressions in compact mode.
  • "auto": Format multiline expressions in compact mode if they do not exceed MultilineCompactThreshold.

MultilineCompactThreshold

Type: natural number

Default: 10

The maximum number of lines a multiline expression can have before it is formatted in compact mode.

Only used if CompactMultilineMode is not "never".

uiua_fork's People

Contributors

kaikalii avatar zollerboy1 avatar aspiringlich avatar bhansconnect avatar ifreilicht avatar wackbyte avatar detegr avatar aprzn123 avatar expitau avatar voklen avatar sullyj3 avatar zakchrom avatar quentinjanuel avatar kiyoshi364 avatar eltociear avatar infectedgriffon avatar mlochbaum avatar shnarazk avatar nskobelevs avatar olegalexander avatar chunes3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.