rnix-parser

A Nix parser written in Rust [maintainer=@oberblastmeister] (by nix-community)

Rnix-parser Alternatives

Similar projects and alternatives to rnix-parser

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rnix-parser alternative or higher similarity.

rnix-parser reviews and mentions

Posts with mentions or reviews of rnix-parser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-27.
  • auto update notifier & gui for non-tech users?
    5 projects | /r/NixOS | 27 Jun 2022
    I definitely plan to support as much as I can, but there is definitely a level of complexity that can never be truly translated to a graphical tool. What I've found helpful during development for me is that I split the frontend GUI and the backed parser and editor into two projects (nixos-conf-editor and nix-editor), that way I could tackle a lot of the parsing and editing alone without worrying about specific GUI features needed (and use it for other projects). Later when I need some feature I add it to nix-editor. So far nix-editor supports simple attribute modification, array adding and popping, and recursive attribute definition and dereferencing. It's definitely not perfect by any means, but so far it's been enough for the projects I've been working on. I definitely need to credit any success I've had so far to the developers of rnix-parser which translates nix expression to easy to manage ASTs.
  • Advantages of flakes
    2 projects | /r/NixOS | 17 Feb 2022
    I'm hopeful that with https://github.com/nix-community/rnix-parser being a thing now, we can get some better Nix tooling, particularly for stuff like linting and doc extraction.
  • The Curse of NixOS
    35 projects | news.ycombinator.com | 24 Jan 2022
    Okay, yes, I agree with all of that. Flakes are kind of a module system, but having clearer semantics around functions and classes would definitely help with both code readability and producing better stack traces.

    And a proper type system would be awesome.

    Regarding docs, it is interesting that portions of the nixpkgs source do seem to have docblock-like comments above the functions, but AFAICT there's no formalized process for extracting or rendering those. Given that https://github.com/nix-community/rnix-parser exists, I wonder how big of a leap it would be to actually extract those, render them into rST pages, and generate a searchable Sphinx manual.

  • A note from our sponsor - SaaSHub
    www.saashub.com | 4 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic rnix-parser repo stats
3
331
0.0
12 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com