Wisdom is a scripting language that aims to be as good at text processing as Perl, with the readability of languages such as Python or Rust.
To this end, it incorporates the dynamic typing of Python with the regex support of Perl some of the syntax of Rust. Eventually the language should look something like the following:
use std::fs;
fn filter(path: str, pattern: regex) {
if (path ~= pattern) {
print("Found: ${path}")
}
}
fn main() {
for file in std::fs::walk() {
filter(path, "^[foo].*$");
}
}
Currently, Wisdom is in a very early state where I'm working on tokenizing the source code, creating the AST and building a simple REPL. Features will be added and modified continuously throughout this period, so nothing should be considered stable at this point.
Current Roadmap:
- Simple maths expressions
- Recursive expressions
- Variables, bindings, and their inclusion in expressions.
- Expand literal kinds
- Expand expressions, inc boolean operations.
- String literals, including appropriate escapes
- Statements
- built in functions
- ... others
- User defined Functions
- Classes maybe?
- A proper interpreter / JIT maybe?
- World domination