Code Monkey home page Code Monkey logo

rshell-1's Introduction

rshell

Project source can be downloaded from https://github.com/Liniarc/rshell.git

###Author & Contributor List Thomas Liu

###Synopsis

Recreate command shell for CS100 assignment in Haskell

The shell is capable of taking in a command line and executing it similarlly to how it'd be executed in the Bash shell.

Running the file

In order to run this program, you need to have the ghc compiler.

Bugs

Currently treats quotes as normal characters e.g. echo "four    spaces" will output "four spaces" instead of four   spaces

Does not support piping, control characters, assignment operators, etc.

Does not output errors if it is unable to find a command

Ignores "empty" commands. e.g. ;echo 5 will not give an error and simply print out 5

Short-circuit of && and || will short-circuit all remaining commands even if remaining commands would normally be executed e.g. true || echo 1; echo 2 will not run echo 2 This is different from the Bash terminal would create sub operators such that the command would run as (true || echo 1); echo 2 which would call echo 2

Parenthesis are not supported of logical operators (or in general)

cd does not work

Will not work if in script mode

Todos

Currently the shell runs via giving rawSystem the commands. Use foriegn imports or process and forking instead

Look into parsec for monadic parsing to simplify parsing commands

Look into haddoc for haskell documentation

Include custom support for the ls command (hw1)

Include support for piping and I/O redirection (hw2)

Include support for finding commands, the cd command, and control characters (hw3)

rshell-1's People

Contributors

liniarc avatar

Watchers

Kenneth Huang 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.