This is an example of datscript, a data processing language for moving, manipulating, and organizing data.
This is just a proof of concept - it doesn't function yet
a = clone a/b b = load "http://google.com" a | filter "hello"
Execute the datscript
$ npm i -g datscript$ datscript demo.ds
how it all works
- first, the grammar of the language is described in
- the grammar file contains both a lexer and a parser.
- the resulting script is then fed into the vm module and executed in a sandbox with a special set of globals.
Overall, the goal of datscript is to create something people will use. As such, it should do a good job of meeting the constraints of non-experts who deal with lots of semi-structured data.
- data might be dirty
- data may come from various sources, like spreadsheets, websites, csv files, etc
- people using datscript may be non-programmers
- generate a new
npm run grammar.js