Attempt to do a little nix interpreting
nix
  • Rust 97.7%
  • Nix 2.3%
Find a file
2026-02-28 21:21:50 +01:00
bin chore(ast): started work on arithmetic 2026-02-19 21:23:52 +01:00
docs feat(ast): implemented unaries 2026-02-28 02:32:23 +01:00
examples chore(examples): added more examples 2026-02-23 22:25:54 +01:00
lib fix(lexer): variables may have underscores 2026-02-28 21:21:50 +01:00
.envrc init 2026-02-18 00:23:53 +01:00
.gitignore init 2026-02-18 00:23:53 +01:00
Cargo.lock feat(ast): started work on assignments 2026-02-25 22:58:06 +01:00
Cargo.toml feat: got literals almost working 2026-02-18 04:32:57 +01:00
flake.lock feat: got pattern working 2026-02-18 16:32:59 +01:00
flake.nix chore: renamed parser -> lexer 2026-02-18 17:20:08 +01:00
LICENSE Initial commit 2026-02-18 00:22:42 +01:00
pkg.nix chore(nix): added nix build 2026-02-28 21:14:46 +01:00
README.md chore(readme): adds a bit of readme 2026-02-28 02:43:23 +01:00
test.out chore(ast): nested arithmetic still does not work 2026-02-25 18:33:55 +01:00

mini-nix

Attempt to do a little nix interpreting

How to use

This is currently under development, but you can play with it a bit.

Either with an input file

cargo run -- -f <input-file>

Or repl-like

cargo run --

Currently it just builds an AST and nothing else. You currently need to add -vv to enable tracing output and see something.

Performance-Optimization-Bingo

  • Use References in Token instead of a full-blown String