Giter VIP home page Giter VIP logo

oysterlang's People

Contributors

chriskuech avatar mark0b avatar

Watchers

 avatar  avatar  avatar

Forkers

mark0b

oysterlang's Issues

`cd` command

Scenario 1

cd $path
  1. Set $OLDPWD to the current value of the $PWD.
  2. Set $PWD to the current value of $path.

Scenario 2

cd -
  1. Set $PWD to the current value of $OLDPWD.
  2. Print $PWD.

Jobs

  • Implement the POSIX jobs command
  • Implement the POSIX fg command
  • Invoking a <block> with <block> & executes <block> in a background job

`match`

Should be able to pattern match on $args in functions.

Ranges

Expression <a>..<b> should be parsed into Expr::Range(a, b). Evaluating the range results in a vector of elements from <a> (inclusive) to <b> (exclusive).

Modules

  • .oym files are oysterlang module files
    • Only pub assignments are exported
    • Only pub $main = ... is invoked if the module is invoked
  • .oys files are oyster script files without exports
  • use works same as Rust

String interpolation

$name and $(...) should be expanded in strings and compiled down to Expr::Add(...)

Data structures

  • Support for JSON/Rust syntax for data structures
    • Arrays
    • Hashes
    • String
    • Number
    • Null
  • fromjson cmd for parsing stdin into data structures
    $data = $json | fromjson
  • tojson cmd for piping to JSON
    $json = $data | tojson

Strings

These should work already. Just need basic unit tests to validate.

Parsing overhaul

Support

  • Token positions
  • Contextual tokenization, such as to allow unquoted strings as parameters

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.