oysterlang's People
Forkers
mark0boysterlang's Issues
`cd` command
Scenario 1
cd $path
- Set
$OLDPWD
to the current value of the$PWD
. - Set
$PWD
to the current value of$path
.
Scenario 2
cd -
- Set
$PWD
to the current value of$OLDPWD
. - 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).
Command parsing and invocation
Support basic execution of commands, as in bash
and pwsh
.
Modules
.oym
files are oysterlang module files- Only
pub
assignments are exported - Only
pub $main = ...
is invoked if the module is invoked
- Only
.oys
files are oyster script files without exportsuse
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.