bash
Package bash implements a bash tokeniser and AST.
Filename
Size
Last Commit Date
Commit Message
..
cmd
bashfmt
README.md
410
2025/07/21 07:08:41
added README.md for bashfmt
main.go
925
2025/07/25 08:09:21
return exit status 1 on an error
walk
README.md
617
2025/08/07 07:19:44
added README
walk.go
13594
2025/08/07 07:19:27
added type/fn comments
LICENSE
767
2025/02/27 21:28:48
added LICENSE
README.md
25211
2025/07/28 07:01:50
regen'd README
ast.go
3361
2025/07/18 08:29:55
added type comments
ast_compound.go
27239
2025/07/28 07:01:41
corrected typos
ast_compound_test.go
176976
2025/07/24 07:44:18
added test for an invalid word following a compound statement
ast_parser.go
4440
2025/07/05 13:38:44
removed unused return value
ast_parser_test.go
549
2025/05/18 18:19:46
added Error tests
ast_statement.go
13694
2025/07/25 08:31:25
assign a special token type to assignment operator so it can be correctly parsed as a word in a value
ast_statement_test.go
70136
2025/07/14 07:04:06
added Pipeline test for just an assignment on the RHS of a pipe
ast_test.go
44081
2025/07/08 07:12:32
split ast into multiple files
ast_word.go
20674
2025/08/12 06:00:39
substring arguments are words, not just number literals
ast_word_test.go
56247
2025/08/12 06:08:25
added substring parameter expansion test with words instead of number literals
errors.go
1410
2025/05/27 08:49:25
added error
format.go
15648
2025/07/28 07:06:11
modified WriteString method to return nothing
format.sh
3072
2025/08/05 06:27:12
corrected formatting
format_format.go
9622
2025/07/20 08:35:50
regen'd
format_print.go
23387
2025/08/12 06:01:50
corrected printing of substrings
format_print_test.go
22183
2025/07/25 08:48:27
added tokeniser test for a string with a newline
format_types.go
25568
2025/08/05 06:27:18
regen'd
go.mod
92
2025/03/30 18:30:38
updated to latest parser package
go.sum
177
2025/04/17 17:05:19
removed old entries
state_test.go
2232
2025/08/12 06:02:06
added missing/new states
tokeniser.go
47710
2025/08/12 06:00:06
corrected tokenising of substring arguments
tokeniser_test.go
144135
2025/08/12 06:02:22
added tokeniser test for substring with non-number params
types.go
1486
2025/07/20 08:35:50
regen'd