Giter Site home page Giter Site logo

haskshell's Introduction

About

Happy

  • Happy is a parser generator for haskell. like yacc/bison is for C.
  • its lexer equivalent is called Alex, which i just implemented use of
  • install happy and alex using:
    stack install happy alex
        

    these will probably be installed when you run stack install, but I’m not really sure.

Requirements

  • This program requires stack to install dependencies and compile properly.
  • ghc and cabal can be install using pacman on arch, probably apt-get on ubuntu or whatever.
  • stack can be installed idk from the website or whatever
  • otherwise stack will take care of libraries when you run the command stack install

Building

  • just run
    stack install
        

Remember

To install libraries manually, run

stack install <package>

Running

stack will install binaries into $HOME/.local/bin, so add this to your path if you want

TODOs

  • [X] switch from system.posix.process to system.process, for return val and pipe support
    • hopefully this will fix the order of execution of commands not being guaranteeable, i.e. not forked
  • [X] problem – varRef vs single word commands. possible solution:
    • make if-stmts only contain exprs if theyre wrapped in brackets of some sort
  • [X] think about ambiguity, e.g. ‘if 1 == 2 then echo hi ; a = 2’ gets parsed as ‘if .. then ( echo hi ; a = 2)’
    • edit %left precedence accordingly
  • [X] find a better way to handle empty lines
  • [X] start using alex. adding ‘==’ support broke assignment without spaces
  • [ ] seperate Expression datatype into Expression and Literal?
  • [X] make variable evaluation explicit
  • [ ] other things that are listed throughout the code

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.