Coder Social home page Coder Social logo

fshell's Introduction

fshell - a functional shell

Installation

Prerequisites

$ git clone https://github.com/Innf107/fshell
$ cd fshell
$ stack install

The fshell executable will be automatically installed into $HOME/.local/bin/fshell. Make sure this directory is on your PATH or copy the executable to a custom location that is on your PATH.

Running fshell

fshell can simply be run by opening a terminal and running the fshell command as follows.

$ fshell

For more information and other ways to run the fshell (like running a script file) type

$ fshell --help

Quick Start

On the surface, fshell looks and feels like most other shells (i.e. bash, fish, zsh,...).

$ echo Hi
Hi
$ echo $PWD | xargs printf "Current working directory: %s\n"
Current working directory: /home/prophet 

Once you get to scripting, that perception should have changed.

square x = x * x;

echo (square 5)

filesInCurrentDirectory = {ls -A}

foreach (unlines filesInCurrentDirectory) (\x -> {printf ("File: " ++ $x)})

Note how scripts use a different parse mode than usage at the command prompt. If you wanted to execute the first statement at the command prompt, you would have to write it as square x = $x * $x.

Language Reference

TBD

Basic Syntax

TBD

Parse Modes

TBD

Features Under Consideration

TBD

To Be Documented

TBD

fshell's People

Contributors

innf107 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.