rnix-parser
rnix-parser copied to clipboard
A Nix parser written in Rust [maintainer=@oberblastmeister]
Both modules don't expose much anyway and are mostly and implementation details.
### Summary & Motivation As described in #157, Nix doesn't allow additional leading 0's on floats. Adding additional leading zeros to numbers may even break them into two tokens. (TOKEN_INT...
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.0.0 to 2.4.0. Release notes Sourced from Swatinem/rust-cache's releases. v2.4.0 Fix cache key stability. Use 8 character hash components to reduce the key length, making it more...
### Describe the bug rnix-parser does not parse floats/ints the same as the nix official parser. ### Code Snippet to reproduce ```nix let e="e"; in [001.22e01e.30.4] ``` (yes, this is...
### Error Tokens should be seen as something other than trivial. This means they are skipped during parsing but must be validated. Instead, handle them and fail during parsing. The...
### Description When renaming a file in a collection of Nix files, the relative path expressions that referenced the old location become invalid. The Nixpkgs architecture team is working on...
### Summary & Motivation I fixed the warnings Clippy showed. Mostly because Clippy helps me improve my code, and having warnings is distracting. I'm also trying to add a CI...
### Description Some basic code that demonstrates _modifying_ an AST. ### Considered alternatives Poking around, playing with various things, reading tests -- currently doing that. ### Additional context An example...
### Summary & Motivation After parsing with `rnix`, I store an intermediate form in JSON which I wish to be able to re-serialize into an AST. Allowing reading `SyntaxKind` from...