berberman / nix-lang

[WIP] A toy parser for Nix language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix-lang

A toy parser for Nix language that produces "Trees that Grow" style annotated AST.

Known unsupported syntaxes

Although it now parses the entire nixpkgs, some valid syntaxes are not supported.

  • Legacy let
let { x = 233; body = x; }
  • Floating number started with decimal point
.233
  • Multi has attr
a ? b ? c ? d
  • Operator without white spaces
1+-1

About

[WIP] A toy parser for Nix language

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 96.5%Language:Nix 3.5%