Thu 12 Jan 17 − 19:36, Profpatsch(m...@profpatsch.de) a écrit: > On 17-01-12 07:31pm, Théophane Hufschmitt wrote: > > I'd want to support exactly the same syntax as nix does. That would > > mean (depending of the position of the nix core-dev team about this) > > either that the nix syntax would be extended to support type > > annotations, either that those would be included in comments. > > If you want to write a nix parser, you can take a look at > https://hackage.haskell.org/package/hnix > > Also, Gabriel took a quick shot at one, but it’s unfinished: > https://github.com/Gabriel439/nixfmt > > Hope it works for you, writing parsers is tricky. Especially the > string splicing in nixexprs. > > -- > Proudly written in Mutt with Vim on NixOS. > Q: Why is this email five sentences or less? > A: http://five.sentenc.es > May take up to five days to read your message. If it’s urgent, call me.
I'd heard about hnix, but didn't know nixfmt. I'll keep them as references for when I actually write the parser -- Théophane Hufschmitt
signature.asc
Description: PGP signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev