> As such, I've started a project call hnix which will implement a parser and
> evaluator for Nix in Haskell.  I have the parser working for simple
> expressions already (using either Parsec or Trifecta, it works with both).
AFAIK Peter Simons has written a parser previously, too. Maybe search in
the mailinglist archives to join efforts

See here:
Subject: Haskell Parser for (subset of) Nix
http://article.gmane.org/gmane.linux.distributions.nixos/10538/match=nix+parser+haskell

> My first goal is a syntax verification
vim-addon-nix has been using it for ages:
nix-instantiate --parse-only foo.nix does a syntax-check
You may want to use it till your alternative is ready.

Comparing with an Haskell implementation would be fun for many reasons,
using multiple cores for instance.

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to