Commit graph

16 commits

Author SHA1 Message Date
3eb4a8450d test: disable unit tests
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2023-01-16 15:35:39 +01:00
cafd3cafe1 docs: enforce documentation on all public things
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2023-01-16 15:33:52 +01:00
009947fa29 perf(parser): Vec::with_capacity for great improvements
Also played around with SmallVec, it is actually perfoming worse in most
cases, and "equal" at best.

Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-07 21:48:44 +00:00
cfd15122ab fix(parser): make ; be part of the statement
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-07 13:41:28 +00:00
a990418704 build: add deny(unreachable_pub)
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-07 12:20:21 +00:00
fc3d52fe48 refactor(parser): unify Program and CommandSubstitution
Acked-by: cpli <dev@cpli.in>
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-06 23:03:31 +00:00
c6a972c76b refactor(parser): small improvements
Acked-by: ElKowar
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-06 22:41:06 +00:00
f215335627 refactor(parser): get rid of tailcall in favor of chain
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-06 19:25:16 +00:00
87b911183c style(tests): fix indentation in expect blocks
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-11-05 13:32:38 +00:00
a88a163273 refactor(tests): use expect-test rather than insta
insta doesn't support having a single check function with all the
duplicated code.

Acked-by: ElKowar
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-10-28 08:12:26 +00:00
fbba44312f fix(lexer): fix inproper handling of \\\n
Before it would escape the newline resulting in passing it as an
argument.

Signed-off-by: Charlotte Meyer <dev@buffet.sh>
2022-10-28 08:12:26 +00:00
4e1a835ddc feat: add command substitutions with ()
This requires PreparedCommand's to work with OsStrings rather than
Strings.

Acked-by: cpli
Acked-by: ElKowar
2022-10-28 08:12:25 +00:00
65b50557c9 chore: add licenses 2022-10-28 08:12:25 +00:00
bd23c3e40d fix: remove unneeded derives 2022-10-23 14:32:29 +00:00
78593f1667 feat(parser): parse double quoted strings 2022-10-01 13:29:15 +00:00
02f19d91ee feat(parser): implement parser 2022-09-15 21:20:26 +00:00