├── .envrc ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── question.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── benches ├── all-packages.nix └── all-packages.rs ├── default.nix ├── examples ├── dump-ast.rs ├── error-report.rs ├── from-stdin.rs ├── list-fns.rs ├── preserve.rs └── test-nixpkgs.rs ├── flake.lock ├── flake.nix ├── fuzz ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── fuzz_targets │ ├── lexer.rs │ └── parser.rs └── rust-toolchain.toml ├── rustfmt.toml ├── shell.nix ├── src ├── ast.rs ├── ast │ ├── expr_ext.rs │ ├── interpol.rs │ ├── nodes.rs │ ├── operators.rs │ ├── path_util.rs │ ├── str_util.rs │ └── tokens.rs ├── kinds.rs ├── lib.rs ├── macros.rs ├── parser.rs ├── tests.rs ├── token_set.rs └── tokenizer.rs └── test_data ├── parser ├── error │ ├── error.expect │ ├── error.nix │ ├── extra_comma.expect │ ├── extra_comma.nix │ ├── formals_double_bind.expect │ ├── formals_double_bind.nix │ ├── inherit_from_late.expect │ ├── inherit_from_late.nix │ ├── inherit_incomplete.expect │ ├── inherit_incomplete.nix │ ├── path_bare_tilde.expect │ ├── path_bare_tilde.nix │ ├── path_interp_no_separator.expect │ ├── path_interp_no_separator.nix │ ├── path_interp_trailing_slash.expect │ ├── path_interp_trailing_slash.nix │ ├── path_store_interp.expect │ ├── path_store_interp.nix │ ├── path_tilde.expect │ ├── path_tilde.nix │ ├── path_tilde_slash.expect │ ├── path_tilde_slash.nix │ ├── path_trailing_slash.expect │ ├── path_trailing_slash.nix │ ├── select_both_errors.expect │ ├── select_both_errors.nix │ ├── ws_belongs_to_root.expect │ ├── ws_belongs_to_root.nix │ ├── ws_belongs_to_root2.expect │ └── ws_belongs_to_root2.nix └── success │ ├── apply.expect │ ├── apply.nix │ ├── assert.expect │ ├── assert.nix │ ├── attrpath_ident.expect │ ├── attrpath_ident.nix │ ├── attrset.expect │ ├── attrset.nix │ ├── attrset_dynamic.expect │ ├── attrset_dynamic.nix │ ├── attrset_empty.expect │ ├── attrset_empty.nix │ ├── attrset_rec.expect │ ├── attrset_rec.nix │ ├── bool_arith_ops.expect │ ├── bool_arith_ops.nix │ ├── bool_ops.expect │ ├── bool_ops.nix │ ├── bool_ops_eq.expect │ ├── bool_ops_eq.nix │ ├── docs.expect │ ├── docs.nix │ ├── has_attr_prec.expect │ ├── has_attr_prec.nix │ ├── if_elseif_else.expect │ ├── if_elseif_else.nix │ ├── import_nixpkgs.expect │ ├── import_nixpkgs.nix │ ├── inherit.expect │ ├── inherit.nix │ ├── inherit_dynamic.expect │ ├── inherit_dynamic.nix │ ├── interpolation.expect │ ├── interpolation.nix │ ├── lambda_is_not_uri.expect │ ├── lambda_is_not_uri.nix │ ├── lambda_list.expect │ ├── lambda_list.nix │ ├── lambda_nested.expect │ ├── lambda_nested.nix │ ├── let.expect │ ├── let.nix │ ├── let_legacy.expect │ ├── let_legacy.nix │ ├── list.expect │ ├── list.nix │ ├── list_concat.expect │ ├── list_concat.nix │ ├── math.expect │ ├── math.nix │ ├── math2.expect │ ├── math2.nix │ ├── math_no_ws.expect │ ├── math_no_ws.nix │ ├── merge.expect │ ├── merge.nix │ ├── multiple.expect │ ├── multiple.nix │ ├── operators_right_assoc.expect │ ├── operators_right_assoc.nix │ ├── or-as-ident.expect │ ├── or-as-ident.nix │ ├── or_in_attr.expect │ ├── or_in_attr.nix │ ├── path.expect │ ├── path.nix │ ├── path_interp.expect │ ├── path_interp.nix │ ├── path_interp_no_prefix.expect │ ├── path_interp_no_prefix.nix │ ├── path_no_newline.expect │ ├── path_no_newline.nix │ ├── pattern_bind_left.expect │ ├── pattern_bind_left.nix │ ├── pattern_bind_right.expect │ ├── pattern_bind_right.nix │ ├── pattern_default.expect │ ├── pattern_default.nix │ ├── pattern_default_attrset.expect │ ├── pattern_default_attrset.nix │ ├── pattern_default_ellipsis.expect │ ├── pattern_default_ellipsis.nix │ ├── pattern_ellipsis.expect │ ├── pattern_ellipsis.nix │ ├── pattern_trailing_comma.expect │ ├── pattern_trailing_comma.nix │ ├── pipe_left.expect │ ├── pipe_left.nix │ ├── pipe_left_assoc.expect │ ├── pipe_left_assoc.nix │ ├── pipe_left_math.expect │ ├── pipe_left_math.nix │ ├── pipe_mixed.expect │ ├── pipe_mixed.nix │ ├── pipe_mixed_math.expect │ ├── pipe_mixed_math.nix │ ├── pipe_right.expect │ ├── pipe_right.nix │ ├── pipe_right_assoc.expect │ ├── pipe_right_assoc.nix │ ├── pipe_right_math.expect │ ├── pipe_right_math.nix │ ├── select_default.expect │ ├── select_default.nix │ ├── select_ident.expect │ ├── select_ident.nix │ ├── select_string_dynamic.expect │ ├── select_string_dynamic.nix │ ├── string.expect │ ├── string.nix │ ├── string_complex_url.expect │ ├── string_complex_url.nix │ ├── string_interp_ident.expect │ ├── string_interp_ident.nix │ ├── string_interp_nested.expect │ ├── string_interp_nested.nix │ ├── string_interp_select.expect │ ├── string_interp_select.nix │ ├── trivia.expect │ ├── trivia.nix │ ├── with-import-let-in.expect │ ├── with-import-let-in.nix │ ├── with.expect │ └── with.nix └── tokenizer ├── error ├── path_interp_trailing_slash.expect ├── path_interp_trailing_slash.nix ├── path_tilde.expect ├── path_tilde.nix ├── path_tilde_slash.expect ├── path_tilde_slash.nix ├── path_trailing_slash.expect └── path_trailing_slash.nix └── success ├── comment_interspersed.expect ├── comment_interspersed.nix ├── comment_multiline.expect ├── comment_multiline.nix ├── comment_multiline2.expect ├── comment_multiline2.nix ├── float.expect ├── float.nix ├── float_no_leading_part.expect ├── float_no_leading_part.nix ├── float_no_trailing_part.expect ├── float_no_trailing_part.nix ├── float_scientific_lower.expect ├── float_scientific_lower.nix ├── float_scientific_neg.expect ├── float_scientific_neg.nix ├── float_scientific_pos.expect ├── float_scientific_pos.nix ├── float_scientific_upper.expect ├── float_scientific_upper.nix ├── int.expect ├── int.nix ├── lambda.expect ├── lambda.nix ├── lambda_arg_underscore.expect ├── lambda_arg_underscore.nix ├── let.expect ├── let.nix ├── list.expect ├── list.nix ├── list_concat.expect ├── list_concat.nix ├── math.expect ├── math.nix ├── math_div_isnt_path.expect ├── math_div_isnt_path.nix ├── math_no_ws.expect ├── math_no_ws.nix ├── op_geq_isnt_path.expect ├── op_geq_isnt_path.nix ├── op_update.expect ├── op_update.nix ├── path_absolute.expect ├── path_absolute.nix ├── path_home.expect ├── path_home.nix ├── path_interp.expect ├── path_interp.nix ├── path_interp_apply.expect ├── path_interp_apply.nix ├── path_interp_multiple.expect ├── path_interp_multiple.nix ├── path_interp_multiple2.expect ├── path_interp_multiple2.nix ├── path_interp_then_plain.expect ├── path_interp_then_plain.nix ├── path_isnt_math.expect ├── path_isnt_math.nix ├── path_no_newline.expect ├── path_no_newline.nix ├── path_relative.expect ├── path_relative.nix ├── path_relative_prefix.expect ├── path_relative_prefix.nix ├── path_store.expect ├── path_store.nix ├── path_underscore.expect ├── path_underscore.nix ├── patterns.expect ├── patterns.nix ├── select_dynamic.expect ├── select_dynamic.nix ├── string.expect ├── string.nix ├── string_dollar_escape.expect ├── string_dollar_escape.nix ├── string_escape.expect ├── string_escape.nix ├── string_interp.expect ├── string_interp.nix ├── string_interp_dollar_escape.expect ├── string_interp_dollar_escape.nix ├── string_interp_nested.expect ├── string_interp_nested.nix ├── string_interp_select.expect ├── string_interp_select.nix ├── string_isnt_path.expect ├── string_isnt_path.nix ├── string_multiline.expect ├── string_multiline.nix ├── string_multiline_dollar_escape.expect ├── string_multiline_dollar_escape.nix ├── string_multiline_interp_escape.expect ├── string_multiline_interp_escape.nix ├── uri.expect ├── uri.nix ├── uri_with_underscore.expect ├── uri_with_underscore.nix ├── with.expect └── with.nix /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | 3 | /.direnv/ 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/README.md -------------------------------------------------------------------------------- /benches/all-packages.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/benches/all-packages.nix -------------------------------------------------------------------------------- /benches/all-packages.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/benches/all-packages.rs -------------------------------------------------------------------------------- /default.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/default.nix -------------------------------------------------------------------------------- /examples/dump-ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/dump-ast.rs -------------------------------------------------------------------------------- /examples/error-report.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/error-report.rs -------------------------------------------------------------------------------- /examples/from-stdin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/from-stdin.rs -------------------------------------------------------------------------------- /examples/list-fns.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/list-fns.rs -------------------------------------------------------------------------------- /examples/preserve.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/preserve.rs -------------------------------------------------------------------------------- /examples/test-nixpkgs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/examples/test-nixpkgs.rs -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/flake.nix -------------------------------------------------------------------------------- /fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | corpus 3 | artifacts 4 | -------------------------------------------------------------------------------- /fuzz/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/fuzz/Cargo.lock -------------------------------------------------------------------------------- /fuzz/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/fuzz/Cargo.toml -------------------------------------------------------------------------------- /fuzz/fuzz_targets/lexer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/fuzz/fuzz_targets/lexer.rs -------------------------------------------------------------------------------- /fuzz/fuzz_targets/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/fuzz/fuzz_targets/parser.rs -------------------------------------------------------------------------------- /fuzz/rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/fuzz/rust-toolchain.toml -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | use_small_heuristics = "Max" 2 | -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/shell.nix -------------------------------------------------------------------------------- /src/ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast.rs -------------------------------------------------------------------------------- /src/ast/expr_ext.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/expr_ext.rs -------------------------------------------------------------------------------- /src/ast/interpol.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/interpol.rs -------------------------------------------------------------------------------- /src/ast/nodes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/nodes.rs -------------------------------------------------------------------------------- /src/ast/operators.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/operators.rs -------------------------------------------------------------------------------- /src/ast/path_util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/path_util.rs -------------------------------------------------------------------------------- /src/ast/str_util.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/str_util.rs -------------------------------------------------------------------------------- /src/ast/tokens.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/ast/tokens.rs -------------------------------------------------------------------------------- /src/kinds.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/kinds.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/macros.rs -------------------------------------------------------------------------------- /src/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/parser.rs -------------------------------------------------------------------------------- /src/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/tests.rs -------------------------------------------------------------------------------- /src/token_set.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/token_set.rs -------------------------------------------------------------------------------- /src/tokenizer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/src/tokenizer.rs -------------------------------------------------------------------------------- /test_data/parser/error/error.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/error.expect -------------------------------------------------------------------------------- /test_data/parser/error/error.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/error.nix -------------------------------------------------------------------------------- /test_data/parser/error/extra_comma.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/extra_comma.expect -------------------------------------------------------------------------------- /test_data/parser/error/extra_comma.nix: -------------------------------------------------------------------------------- 1 | {} 2 | , -------------------------------------------------------------------------------- /test_data/parser/error/formals_double_bind.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/formals_double_bind.expect -------------------------------------------------------------------------------- /test_data/parser/error/formals_double_bind.nix: -------------------------------------------------------------------------------- 1 | f@{}@f: 2 | "" -------------------------------------------------------------------------------- /test_data/parser/error/inherit_from_late.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/inherit_from_late.expect -------------------------------------------------------------------------------- /test_data/parser/error/inherit_from_late.nix: -------------------------------------------------------------------------------- 1 | { inherit a (b) c; } -------------------------------------------------------------------------------- /test_data/parser/error/inherit_incomplete.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/inherit_incomplete.expect -------------------------------------------------------------------------------- /test_data/parser/error/inherit_incomplete.nix: -------------------------------------------------------------------------------- 1 | let 2 | inherit 3 | -------------------------------------------------------------------------------- /test_data/parser/error/path_bare_tilde.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_bare_tilde.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_bare_tilde.nix: -------------------------------------------------------------------------------- 1 | ~ -------------------------------------------------------------------------------- /test_data/parser/error/path_interp_no_separator.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_interp_no_separator.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_interp_no_separator.nix: -------------------------------------------------------------------------------- 1 | a${b}/c 2 | -------------------------------------------------------------------------------- /test_data/parser/error/path_interp_trailing_slash.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_interp_trailing_slash.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_interp_trailing_slash.nix: -------------------------------------------------------------------------------- 1 | ./${foo}/ 2 | -------------------------------------------------------------------------------- /test_data/parser/error/path_store_interp.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_store_interp.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_store_interp.nix: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test_data/parser/error/path_tilde.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_tilde.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_tilde.nix: -------------------------------------------------------------------------------- 1 | ~p -------------------------------------------------------------------------------- /test_data/parser/error/path_tilde_slash.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_tilde_slash.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_tilde_slash.nix: -------------------------------------------------------------------------------- 1 | ~/ 2 | -------------------------------------------------------------------------------- /test_data/parser/error/path_trailing_slash.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/path_trailing_slash.expect -------------------------------------------------------------------------------- /test_data/parser/error/path_trailing_slash.nix: -------------------------------------------------------------------------------- 1 | /a/ 2 | -------------------------------------------------------------------------------- /test_data/parser/error/select_both_errors.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/select_both_errors.expect -------------------------------------------------------------------------------- /test_data/parser/error/select_both_errors.nix: -------------------------------------------------------------------------------- 1 | ]. 2 | -------------------------------------------------------------------------------- /test_data/parser/error/ws_belongs_to_root.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/ws_belongs_to_root.expect -------------------------------------------------------------------------------- /test_data/parser/error/ws_belongs_to_root.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/ws_belongs_to_root.nix -------------------------------------------------------------------------------- /test_data/parser/error/ws_belongs_to_root2.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/error/ws_belongs_to_root2.expect -------------------------------------------------------------------------------- /test_data/parser/error/ws_belongs_to_root2.nix: -------------------------------------------------------------------------------- 1 | {} = 2 | 3 | -------------------------------------------------------------------------------- /test_data/parser/success/apply.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/apply.expect -------------------------------------------------------------------------------- /test_data/parser/success/apply.nix: -------------------------------------------------------------------------------- 1 | a 1 2 + 3 2 | -------------------------------------------------------------------------------- /test_data/parser/success/assert.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/assert.expect -------------------------------------------------------------------------------- /test_data/parser/success/assert.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/assert.nix -------------------------------------------------------------------------------- /test_data/parser/success/attrpath_ident.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrpath_ident.expect -------------------------------------------------------------------------------- /test_data/parser/success/attrpath_ident.nix: -------------------------------------------------------------------------------- 1 | {a.b.c=1;} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/attrset.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset.expect -------------------------------------------------------------------------------- /test_data/parser/success/attrset.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset.nix -------------------------------------------------------------------------------- /test_data/parser/success/attrset_dynamic.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset_dynamic.expect -------------------------------------------------------------------------------- /test_data/parser/success/attrset_dynamic.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset_dynamic.nix -------------------------------------------------------------------------------- /test_data/parser/success/attrset_empty.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset_empty.expect -------------------------------------------------------------------------------- /test_data/parser/success/attrset_empty.nix: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/attrset_rec.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/attrset_rec.expect -------------------------------------------------------------------------------- /test_data/parser/success/attrset_rec.nix: -------------------------------------------------------------------------------- 1 | rec{test=1;} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/bool_arith_ops.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/bool_arith_ops.expect -------------------------------------------------------------------------------- /test_data/parser/success/bool_arith_ops.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/bool_arith_ops.nix -------------------------------------------------------------------------------- /test_data/parser/success/bool_ops.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/bool_ops.expect -------------------------------------------------------------------------------- /test_data/parser/success/bool_ops.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/bool_ops.nix -------------------------------------------------------------------------------- /test_data/parser/success/bool_ops_eq.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/bool_ops_eq.expect -------------------------------------------------------------------------------- /test_data/parser/success/bool_ops_eq.nix: -------------------------------------------------------------------------------- 1 | 1==1&&2!=3 2 | -------------------------------------------------------------------------------- /test_data/parser/success/docs.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/docs.expect -------------------------------------------------------------------------------- /test_data/parser/success/docs.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/docs.nix -------------------------------------------------------------------------------- /test_data/parser/success/has_attr_prec.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/has_attr_prec.expect -------------------------------------------------------------------------------- /test_data/parser/success/has_attr_prec.nix: -------------------------------------------------------------------------------- 1 | a?"b"&&true 2 | -------------------------------------------------------------------------------- /test_data/parser/success/if_elseif_else.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/if_elseif_else.expect -------------------------------------------------------------------------------- /test_data/parser/success/if_elseif_else.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/if_elseif_else.nix -------------------------------------------------------------------------------- /test_data/parser/success/import_nixpkgs.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/import_nixpkgs.expect -------------------------------------------------------------------------------- /test_data/parser/success/import_nixpkgs.nix: -------------------------------------------------------------------------------- 1 | import{} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/inherit.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/inherit.expect -------------------------------------------------------------------------------- /test_data/parser/success/inherit.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/inherit.nix -------------------------------------------------------------------------------- /test_data/parser/success/inherit_dynamic.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/inherit_dynamic.expect -------------------------------------------------------------------------------- /test_data/parser/success/inherit_dynamic.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/inherit_dynamic.nix -------------------------------------------------------------------------------- /test_data/parser/success/interpolation.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/interpolation.expect -------------------------------------------------------------------------------- /test_data/parser/success/interpolation.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/interpolation.nix -------------------------------------------------------------------------------- /test_data/parser/success/lambda_is_not_uri.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/lambda_is_not_uri.expect -------------------------------------------------------------------------------- /test_data/parser/success/lambda_is_not_uri.nix: -------------------------------------------------------------------------------- 1 | _:null -------------------------------------------------------------------------------- /test_data/parser/success/lambda_list.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/lambda_list.expect -------------------------------------------------------------------------------- /test_data/parser/success/lambda_list.nix: -------------------------------------------------------------------------------- 1 | m:[ m ] 2 | -------------------------------------------------------------------------------- /test_data/parser/success/lambda_nested.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/lambda_nested.expect -------------------------------------------------------------------------------- /test_data/parser/success/lambda_nested.nix: -------------------------------------------------------------------------------- 1 | a: b: a + b 2 | -------------------------------------------------------------------------------- /test_data/parser/success/let.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/let.expect -------------------------------------------------------------------------------- /test_data/parser/success/let.nix: -------------------------------------------------------------------------------- 1 | let a = 42; in a 2 | -------------------------------------------------------------------------------- /test_data/parser/success/let_legacy.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/let_legacy.expect -------------------------------------------------------------------------------- /test_data/parser/success/let_legacy.nix: -------------------------------------------------------------------------------- 1 | let{a=42;body=a;} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/list.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/list.expect -------------------------------------------------------------------------------- /test_data/parser/success/list.nix: -------------------------------------------------------------------------------- 1 | [a 2 3 "lol"] 2 | -------------------------------------------------------------------------------- /test_data/parser/success/list_concat.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/list_concat.expect -------------------------------------------------------------------------------- /test_data/parser/success/list_concat.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/list_concat.nix -------------------------------------------------------------------------------- /test_data/parser/success/math.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/math.expect -------------------------------------------------------------------------------- /test_data/parser/success/math.nix: -------------------------------------------------------------------------------- 1 | 1 + 2 * 3 + 4 / (5 - 6) 2 | -------------------------------------------------------------------------------- /test_data/parser/success/math2.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/math2.expect -------------------------------------------------------------------------------- /test_data/parser/success/math2.nix: -------------------------------------------------------------------------------- 1 | 1 + 2 + 3 * 4 2 | -------------------------------------------------------------------------------- /test_data/parser/success/math_no_ws.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/math_no_ws.expect -------------------------------------------------------------------------------- /test_data/parser/success/math_no_ws.nix: -------------------------------------------------------------------------------- 1 | 5*-(3-2) 2 | -------------------------------------------------------------------------------- /test_data/parser/success/merge.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/merge.expect -------------------------------------------------------------------------------- /test_data/parser/success/merge.nix: -------------------------------------------------------------------------------- 1 | {a=1;}//{b=2;} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/multiple.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/multiple.expect -------------------------------------------------------------------------------- /test_data/parser/success/multiple.nix: -------------------------------------------------------------------------------- 1 | {} ? a ? ${"a"} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/operators_right_assoc.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/operators_right_assoc.expect -------------------------------------------------------------------------------- /test_data/parser/success/operators_right_assoc.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/operators_right_assoc.nix -------------------------------------------------------------------------------- /test_data/parser/success/or-as-ident.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/or-as-ident.expect -------------------------------------------------------------------------------- /test_data/parser/success/or-as-ident.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/or-as-ident.nix -------------------------------------------------------------------------------- /test_data/parser/success/or_in_attr.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/or_in_attr.expect -------------------------------------------------------------------------------- /test_data/parser/success/or_in_attr.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/or_in_attr.nix -------------------------------------------------------------------------------- /test_data/parser/success/path.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path.expect -------------------------------------------------------------------------------- /test_data/parser/success/path.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path.nix -------------------------------------------------------------------------------- /test_data/parser/success/path_interp.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path_interp.expect -------------------------------------------------------------------------------- /test_data/parser/success/path_interp.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path_interp.nix -------------------------------------------------------------------------------- /test_data/parser/success/path_interp_no_prefix.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path_interp_no_prefix.expect -------------------------------------------------------------------------------- /test_data/parser/success/path_interp_no_prefix.nix: -------------------------------------------------------------------------------- 1 | a/${b} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/path_no_newline.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/path_no_newline.expect -------------------------------------------------------------------------------- /test_data/parser/success/path_no_newline.nix: -------------------------------------------------------------------------------- 1 | import ./. 2 | 3 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_bind_left.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_bind_left.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_bind_left.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_bind_left.nix -------------------------------------------------------------------------------- /test_data/parser/success/pattern_bind_right.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_bind_right.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_bind_right.nix: -------------------------------------------------------------------------------- 1 | {} @ outer: 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_default.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default.nix: -------------------------------------------------------------------------------- 1 | { a, b ? "default" }: a 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default_attrset.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_default_attrset.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default_attrset.nix: -------------------------------------------------------------------------------- 1 | {a?{}}:a 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default_ellipsis.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_default_ellipsis.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_default_ellipsis.nix: -------------------------------------------------------------------------------- 1 | { a, b ? "default", ... }: a 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_ellipsis.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_ellipsis.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_ellipsis.nix: -------------------------------------------------------------------------------- 1 | { ... }: 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pattern_trailing_comma.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pattern_trailing_comma.expect -------------------------------------------------------------------------------- /test_data/parser/success/pattern_trailing_comma.nix: -------------------------------------------------------------------------------- 1 | {a,}:a 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_left.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left.nix: -------------------------------------------------------------------------------- 1 | builtins.toString <| 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left_assoc.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_left_assoc.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left_assoc.nix: -------------------------------------------------------------------------------- 1 | foo <| builtins.toString <| 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left_math.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_left_math.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_left_math.nix: -------------------------------------------------------------------------------- 1 | builtins.toString <| 1 + 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_mixed.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_mixed.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_mixed.nix: -------------------------------------------------------------------------------- 1 | builtins.toString <| 1 |> foo 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_mixed_math.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_mixed_math.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_mixed_math.nix: -------------------------------------------------------------------------------- 1 | builtins.toString <| 1 + 1 |> foo 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_right.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right.nix: -------------------------------------------------------------------------------- 1 | 1 |> builtins.toString 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right_assoc.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_right_assoc.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right_assoc.nix: -------------------------------------------------------------------------------- 1 | 1 |> builtins.toString |> foo 2 | -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right_math.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/pipe_right_math.expect -------------------------------------------------------------------------------- /test_data/parser/success/pipe_right_math.nix: -------------------------------------------------------------------------------- 1 | 1 + 1 |> builtins.toString 2 | -------------------------------------------------------------------------------- /test_data/parser/success/select_default.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/select_default.expect -------------------------------------------------------------------------------- /test_data/parser/success/select_default.nix: -------------------------------------------------------------------------------- 1 | a.b.c or 1 + 1 2 | -------------------------------------------------------------------------------- /test_data/parser/success/select_ident.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/select_ident.expect -------------------------------------------------------------------------------- /test_data/parser/success/select_ident.nix: -------------------------------------------------------------------------------- 1 | a.b.c 2 | -------------------------------------------------------------------------------- /test_data/parser/success/select_string_dynamic.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/select_string_dynamic.expect -------------------------------------------------------------------------------- /test_data/parser/success/select_string_dynamic.nix: -------------------------------------------------------------------------------- 1 | test."invalid ident"."${hi}".${a} 2 | -------------------------------------------------------------------------------- /test_data/parser/success/string.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string.expect -------------------------------------------------------------------------------- /test_data/parser/success/string.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string.nix -------------------------------------------------------------------------------- /test_data/parser/success/string_complex_url.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_complex_url.expect -------------------------------------------------------------------------------- /test_data/parser/success/string_complex_url.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_complex_url.nix -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_ident.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_interp_ident.expect -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_ident.nix: -------------------------------------------------------------------------------- 1 | "${hello} ${world}" 2 | -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_nested.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_interp_nested.expect -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_nested.nix: -------------------------------------------------------------------------------- 1 | ''${"${var}"}'' 2 | -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_select.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_interp_select.expect -------------------------------------------------------------------------------- /test_data/parser/success/string_interp_select.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/string_interp_select.nix -------------------------------------------------------------------------------- /test_data/parser/success/trivia.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/trivia.expect -------------------------------------------------------------------------------- /test_data/parser/success/trivia.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/trivia.nix -------------------------------------------------------------------------------- /test_data/parser/success/with-import-let-in.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/with-import-let-in.expect -------------------------------------------------------------------------------- /test_data/parser/success/with-import-let-in.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/with-import-let-in.nix -------------------------------------------------------------------------------- /test_data/parser/success/with.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/parser/success/with.expect -------------------------------------------------------------------------------- /test_data/parser/success/with.nix: -------------------------------------------------------------------------------- 1 | with namespace; expr 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_interp_trailing_slash.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/error/path_interp_trailing_slash.expect -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_interp_trailing_slash.nix: -------------------------------------------------------------------------------- 1 | ./${foo}/ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_tilde.expect: -------------------------------------------------------------------------------- 1 | TOKEN_ERROR, "~" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_tilde.nix: -------------------------------------------------------------------------------- 1 | ~ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_tilde_slash.expect: -------------------------------------------------------------------------------- 1 | TOKEN_ERROR, "~/" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_tilde_slash.nix: -------------------------------------------------------------------------------- 1 | ~/ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_trailing_slash.expect: -------------------------------------------------------------------------------- 1 | TOKEN_ERROR, "/a/" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/error/path_trailing_slash.nix: -------------------------------------------------------------------------------- 1 | /a/ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_interspersed.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/comment_interspersed.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_interspersed.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/comment_interspersed.nix -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_multiline.expect: -------------------------------------------------------------------------------- 1 | TOKEN_COMMENT, "/**/" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_multiline.nix: -------------------------------------------------------------------------------- 1 | /**/ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_multiline2.expect: -------------------------------------------------------------------------------- 1 | TOKEN_COMMENT, "/***/" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/comment_multiline2.nix: -------------------------------------------------------------------------------- 1 | /***/ 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "1.234" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float.nix: -------------------------------------------------------------------------------- 1 | 1.234 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_no_leading_part.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, ".5" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_no_leading_part.nix: -------------------------------------------------------------------------------- 1 | .5 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_no_trailing_part.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "1." 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_no_trailing_part.nix: -------------------------------------------------------------------------------- 1 | 1. 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_lower.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "1.1e4" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_lower.nix: -------------------------------------------------------------------------------- 1 | 1.1e4 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_neg.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "123.4e-2" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_neg.nix: -------------------------------------------------------------------------------- 1 | 123.4e-2 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_pos.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "123.4e+2" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_pos.nix: -------------------------------------------------------------------------------- 1 | 123.4e+2 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_upper.expect: -------------------------------------------------------------------------------- 1 | TOKEN_FLOAT, "1.1E4" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/float_scientific_upper.nix: -------------------------------------------------------------------------------- 1 | 1.1E4 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/int.expect: -------------------------------------------------------------------------------- 1 | TOKEN_INTEGER, "42" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/int.nix: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/lambda.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/lambda.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/lambda.nix: -------------------------------------------------------------------------------- 1 | a: b: a + b 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/lambda_arg_underscore.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/lambda_arg_underscore.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/lambda_arg_underscore.nix: -------------------------------------------------------------------------------- 1 | _:null 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/let.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/let.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/let.nix: -------------------------------------------------------------------------------- 1 | let a = 3; in a 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/list.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/list.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/list.nix: -------------------------------------------------------------------------------- 1 | [a 2 3 "lol"] 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/list_concat.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/list_concat.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/list_concat.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/list_concat.nix -------------------------------------------------------------------------------- /test_data/tokenizer/success/math.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/math.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/math.nix: -------------------------------------------------------------------------------- 1 | 1 + 2 * 3 + 4 / (5 - 6) 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/math_div_isnt_path.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/math_div_isnt_path.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/math_div_isnt_path.nix: -------------------------------------------------------------------------------- 1 | a/ 3 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/math_no_ws.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/math_no_ws.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/math_no_ws.nix: -------------------------------------------------------------------------------- 1 | 5*-(3-2) 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/op_geq_isnt_path.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/op_geq_isnt_path.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/op_geq_isnt_path.nix: -------------------------------------------------------------------------------- 1 | x>=y 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/op_update.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/op_update.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/op_update.nix: -------------------------------------------------------------------------------- 1 | a//b 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_absolute.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "/hello/world" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_absolute.nix: -------------------------------------------------------------------------------- 1 | /hello/world 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_home.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "~/hello/world" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_home.nix: -------------------------------------------------------------------------------- 1 | ~/hello/world 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_interp.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp.nix: -------------------------------------------------------------------------------- 1 | ./${foo} 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_apply.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_interp_apply.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_apply.nix: -------------------------------------------------------------------------------- 1 | ./${foo} bar 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_multiple.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_interp_multiple.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_multiple.nix: -------------------------------------------------------------------------------- 1 | ./${foo}${bar} 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_multiple2.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_interp_multiple2.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_multiple2.nix: -------------------------------------------------------------------------------- 1 | ./${foo}a${bar} 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_then_plain.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_interp_then_plain.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_interp_then_plain.nix: -------------------------------------------------------------------------------- 1 | ./${foo}.jpg 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_isnt_math.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "a+3/5+b" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_isnt_math.nix: -------------------------------------------------------------------------------- 1 | a+3/5+b 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_no_newline.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/path_no_newline.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_no_newline.nix: -------------------------------------------------------------------------------- 1 | import ./. 2 | 3 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_relative.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "hello/world" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_relative.nix: -------------------------------------------------------------------------------- 1 | hello/world 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_relative_prefix.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "./hello/world" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_relative_prefix.nix: -------------------------------------------------------------------------------- 1 | ./hello/world 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_store.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_store.nix: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_underscore.expect: -------------------------------------------------------------------------------- 1 | TOKEN_PATH, "hello_/world" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/path_underscore.nix: -------------------------------------------------------------------------------- 1 | hello_/world 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/patterns.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/patterns.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/patterns.nix: -------------------------------------------------------------------------------- 1 | { a, b ? "default", ... } @ outer 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/select_dynamic.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/select_dynamic.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/select_dynamic.nix: -------------------------------------------------------------------------------- 1 | a.${b}.c 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/string.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string.nix: -------------------------------------------------------------------------------- 1 | "Hello world" -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_dollar_escape.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_dollar_escape.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_dollar_escape.nix: -------------------------------------------------------------------------------- 1 | "$${test}" -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_escape.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_escape.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_escape.nix: -------------------------------------------------------------------------------- 1 | "Hello \"World\"" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_interp.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp.nix: -------------------------------------------------------------------------------- 1 | "${hello} ${world}" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_dollar_escape.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_interp_dollar_escape.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_dollar_escape.nix: -------------------------------------------------------------------------------- 1 | "\$${test}" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_nested.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_interp_nested.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_nested.nix: -------------------------------------------------------------------------------- 1 | ''${"${var}"}'' -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_select.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_interp_select.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_interp_select.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_interp_select.nix -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_isnt_path.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_isnt_path.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_isnt_path.nix: -------------------------------------------------------------------------------- 1 | "./${foo}" -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_multiline.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_multiline.nix -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline_dollar_escape.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_multiline_dollar_escape.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline_dollar_escape.nix: -------------------------------------------------------------------------------- 1 | ''$${test}'' 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline_interp_escape.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/string_multiline_interp_escape.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/string_multiline_interp_escape.nix: -------------------------------------------------------------------------------- 1 | ''''$${test}'' 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/uri.expect: -------------------------------------------------------------------------------- 1 | TOKEN_URI, "https://google.com/?q=Hello+World" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/uri.nix: -------------------------------------------------------------------------------- 1 | https://google.com/?q=Hello+World 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/uri_with_underscore.expect: -------------------------------------------------------------------------------- 1 | TOKEN_URI, "https://goo_gle.com/?q=Hello+World" 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/uri_with_underscore.nix: -------------------------------------------------------------------------------- 1 | https://goo_gle.com/?q=Hello+World 2 | -------------------------------------------------------------------------------- /test_data/tokenizer/success/with.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nix-community/rnix-parser/HEAD/test_data/tokenizer/success/with.expect -------------------------------------------------------------------------------- /test_data/tokenizer/success/with.nix: -------------------------------------------------------------------------------- 1 | with namespace; expr 2 | --------------------------------------------------------------------------------