python
A Python tokeniser and parser.
Filename
Size
Last Commit Date
Commit Message
..
walk
README.md
690
2025/08/07 07:19:14
updated README
walk.go
31698
2025/08/07 07:19:07
corrected c+p error
LICENSE
767
2024/08/31 22:23:21
added LICENSE
README.md
44235
2025/08/24 08:55:52
updated README
ast.go
1055
2025/07/29 06:35:47
parse comments before the first statements/empty line as top-file comments
ast_compound.go
40562
2025/08/21 21:28:08
simplified ParameterList comment parsing
ast_compound_test.go
209973
2025/08/21 21:28:51
corrected DefParameter comment test
ast_expression.go
38222
2025/08/24 08:38:48
parse comments in DictItem
ast_expression_test.go
192020
2025/08/26 08:29:17
added Enclosure tests for skipComparison
ast_parser.go
5780
2025/08/20 18:44:35
corrected space parsing for comments
ast_statement.go
36984
2025/08/26 08:28:53
corrected skipping of operators in skipComparison
ast_statement_test.go
143172
2025/08/24 08:55:16
updated LambdaExpression tests
ast_test.go
15998
2025/08/04 07:01:05
added File test with a top comment
errors.go
1558
2024/10/27 19:12:15
sorted error list
format.go
5570
2025/08/08 17:18:57
add methods for recording whether we're in brackets/parens/braces for the purpose of printing comments
format.sh
3199
2025/08/03 11:57:09
corrected formatting
format_format.go
20626
2024/10/28 21:56:22
looks like Python 3.12.7+ spec is incorrect when it comes to starred expressions, reverted to 3.12.6 spec
format_print.go
36494
2025/08/24 08:55:24
updated LambdaExpression comment printing
format_print_test.go
24838
2025/08/24 08:39:23
added print tests for comments in DictItem
format_types.go
54905
2025/08/24 08:38:57
regen'd
go.mod
92
2024/11/28 20:29:01
updated to latest parser package
go.sum
531
2024/11/28 20:29:01
updated to latest parser package
tokeniser.go
10437
2025/06/10 07:13:26
renamed tokenDepth -> state
tokeniser_test.go
28348
2025/07/31 18:15:08
added tokeniser test for whitespace and comments in brackets
types.go
3454
2024/10/28 21:56:22
looks like Python 3.12.7+ spec is incorrect when it comes to starred expressions, reverted to 3.12.6 spec
utils.go
13458
2025/08/13 07:34:32
parse comments in NotTest
utils_test.go
38077
2025/08/13 07:34:32
parse comments in NotTest
wrappable.go
924
2025/01/01 21:42:21
removed extra word