A programming language designed to have C sensibilities with modern syntax and features.
(Internal, compiler dependencies)
Rust standard library
Colored
For ANSI-colorized console output
Num
For easy int <-> enum conversion and other conveniences
TODO // LLVM
This project is in its very early days, but a list of features that have been completed so far are as follows: + Most of version 1 grammar defined grammar.md + Extensive source error reporting system tracking.rs + Lexical analyzer lexer/mod.rs + Abstract Syntax Tree parser/ast.rs + Parser parser/mod.rs: - Type expressions parser/texpr.rs - Pratt-style arithmetic/etc expressions parser/expr.rs - Statements parser/stmt.rs
Because Zeta uses experimental feature flags (specifically try_trait
and bind_by_move_pattern_guards
currently), you will need to install nightly Rust.
You can install the specific recommended/tested nightly version with rustup toolchain install nightly-2019-07-31
, and set it to the default to be used by cargo with rustup default nightly-2019-07-31
Or, you can try the latest nightly Rust with rustup toolchain install nightly
, and set it to the default to be used by cargo with rustup default nightly
You will also need to install RLS for the specific nightly version you're using. If you're using VS Code, simply restart your editor after setting the default and it should prompt you to install RLS.
Clone the repo by running
git clone https://github.com/zeta-lang/zeta
Build with the typical cargo
commands
Note: Driver application is currently just a rudimentary testing app and does not yet support command line control
Visual Studio Code (Not to be confused with Visual Studio, they are totally separate products) is the recommended editor for developing Zeta. It is a fast and highly customizable text editor with some IDE-like features without the bulk, strict pipeline, or platform limitations of systems like Visual Studio. It is a free download and available for both platforms supported by Zeta
vsdbg
/gdb
))
> https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldbThere is an extension to enable syntax highlighting for Zeta, available from source here: https://github.com/zeta-lang/zeta-syntax
VS Code editor tasks are preconfigured for most build script actions in .vscode/tasks.json
To run any task press Ctrl
+ Shift
+ B
and select the task you want from the drop down menu
Debug launch configs for stepping through the driver are included for vsdbg
, gdb
and lldb
debuggers, in .vscode/launch.json