Hah, I also started to write a parser for nix expressions as an exercise! But now that there is already a parser, I'll probably just use yours.
-- Benno 2014-06-29 16:37 GMT+02:00 Oliver Charles <[email protected]>: > On 29/06/14 01:03, John Wiegley wrote: > > Since the Nix language is such a nice and simple pure functional > language, I > > thought it would be nice to have tooling support for it in Haskell, to > aid > > writing lint utilities, etc. > > > > 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). > Weird, I started exactly this project yesterday! I was using > uu-parsinglib, but yours is much further ahead than mine, so I'll ditch > it and try and switch over to yours. > > > > My first goal is a syntax verification and linting tool; after that to > see I > > want to see if I can get an evaluator working for Nix programs. > > My goal is not really parsing though, but building Nix files by working > with an AST rather than gluing a bunch of Strings together. > > Keep up the good work! > - ocharles > > > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
