python
A Python tokeniser and parser.
Filename
Size
Last Commit Date
Commit Message
..
walk
README.md
685
2025/02/07 21:22:21
added README
walk.go
31690
2025/07/27 08:07:04
added missing return
LICENSE
767
2024/08/31 22:23:21
added LICENSE
README.md
44235
2025/06/03 07:09:47
regen'd 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
38349
2025/07/31 07:41:55
changed whitespace parsing
ast_compound_test.go
204123
2025/07/30 07:34:23
added tests for comments in TypeParam
ast_expression.go
30941
2025/07/31 07:41:19
corrected comment parsing in empty Enclosures
ast_expression_test.go
132793
2025/02/10 19:38:14
add tests for comments at the beginning and end of Enclosures
ast_parser.go
5383
2025/07/31 18:13:21
corrected parsing of newlines within brackets for comments
ast_statement.go
33047
2025/07/31 18:13:45
parse comments in TypeParams
ast_statement_test.go
123795
2025/07/31 18:14:08
added comments tests for TypeParams
ast_test.go
14842
2025/07/29 06:57:49
corrected where statement comments are parsed
errors.go
1558
2024/10/27 19:12:15
sorted error list
format.go
5125
2025/07/27 08:17:34
no need to return from WriteString method
format.sh
3189
2025/07/27 07:57:00
removed last io.WriteString call (and 'io' import)
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
27148
2025/07/31 18:14:31
print comments in TypeParams
format_print_test.go
18455
2025/07/31 18:14:50
added print test for comments in TypeParams
format_types.go
50368
2025/07/31 18:13:53
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
13396
2025/07/29 07:30:02
corrected formatting
utils_test.go
38002
2024/11/20 21:30:34
added Unquote test with invalid string opening
wrappable.go
924
2025/01/01 21:42:21
removed extra word