rnix 0.14.0

A Nix parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: unexpected TOKEN_LESS at 0..1, wanted any of [TOKEN_L_PAREN, TOKEN_REC, TOKEN_L_BRACE, TOKEN_L_BRACK, TOKEN_STRING_START, TOKEN_IDENT]
error: unexpected end of file
NODE_ROOT@0..20
  NODE_BIN_OP@0..20
    NODE_APPLY@0..19
      NODE_ERROR@0..1
        TOKEN_LESS@0..1 "<"
      NODE_PATH_REL@1..19
        TOKEN_PATH_REL@1..9 "nixpkgs/"
        NODE_INTERPOL@9..15
          TOKEN_INTERPOL_START@9..11 "${"
          NODE_IDENT@11..14
            TOKEN_IDENT@11..14 "foo"
          TOKEN_INTERPOL_END@14..15 "}"
        TOKEN_PATH_REL@15..19 "/bar"
    TOKEN_MORE@19..20 ">"