Commit Graph

704 Commits

Author SHA1 Message Date
rocky
9c5addc0f0 Python 2.5 compatability 2024-02-04 13:56:28 -05:00
rocky
aadc66fe4a Merge branch 'python-3.0-to-3.2' into python-2.4 2024-02-04 13:18:47 -05:00
rocky
1e72250f79 Merge branch 'master' into python-3.3-to-3.5 2024-02-04 12:37:14 -05:00
rocky
42ed183dbb Fix imports 2024-02-04 12:36:08 -05:00
rocky
ef92f08f56 Black files 2024-02-04 12:29:30 -05:00
rocky
bdc751f444 Merge branch 'master' into python-3.3-to-3.5 2024-02-04 12:25:41 -05:00
rocky
db6c7159f8 lint 2024-02-03 14:47:08 -05:00
rocky
d249c522a7 Fix up linemap option 2024-02-03 12:37:48 -05:00
rocky
dcc9d1a571 Fix spelling via "codespell" 2023-12-17 10:52:32 -05:00
rocky
d2fc7d2dd3 Merge branch 'python-3.0-to-3.2' into python-2.4 2023-04-17 23:18:06 -04:00
rocky
060c8df174 Merge branch 'master' into python-3.3-to-3.5 2023-04-17 23:07:38 -04:00
rocky
7ad0c37c62 Correct a couple of bugs...
We weren't distinguising relative imports from absolute imports.
Fixes #444

Picking out docstring was broken too.
2023-04-17 16:35:27 -04:00
rocky
7e362a8635 Merge branch 'python-3.0-to-3.2' into python-2.4 2022-11-27 05:11:09 -05:00
rocky
54e9de4a7d Merge branch 'master' into python-3.3-to-3.5 2022-11-27 05:01:44 -05:00
rocky
d1911d2487 More lint 2022-11-27 04:14:46 -05:00
rocky
3fcdc323f5 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-09-22 06:39:05 -04:00
rocky
e1f41b724e Merge branch 'master' into python-3.3-to-3.5 2022-09-22 06:38:17 -04:00
rocky
8c85260852 Lint-like changes from VSCode
Also allow 3.11 to run this
2022-09-21 08:29:06 -04:00
rocky
62b816c60b Correct a signature return 2022-09-21 02:08:08 -04:00
rocky
be9af85e16 Hande Python 3.5 make_function() semantic action
Fixes #409
2022-09-21 00:19:37 -04:00
rocky
a99f0e51ab Merge branch 'python-3.3-to-3.5' into python-2.4 2022-06-08 13:27:56 -04:00
rocky
50f6625cd1 Merge branch 'master' into python-3.3-to-3.5 2022-06-08 12:53:50 -04:00
rocky
5c29b9a5e5 remove \n in lambda; 2.6 grammar cleanup 2022-05-14 20:28:24 -04:00
rocky
14fe8c5356 some lambda's can't have \n + grammar cleanup 2022-05-14 20:25:33 -04:00
rocky
0170e39f5d Merge branch 'python-3.3-to-3.5' into python-2.4 2022-05-14 10:43:42 -04:00
rocky
4f6d3a3d7e Merge branch 'master' into python-3.3-to-3.5 2022-05-14 09:02:53 -04:00
rocky
eba0d37d0f Improve Python 1.x decompiling
Still has bugs, but is much better.
2022-04-30 05:54:22 -04:00
rocky
e5d82f7613 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-25 08:05:28 -04:00
rocky
ee4d166e71 Merge branch 'master' into python-3.3-to-3.5 2022-04-25 07:44:10 -04:00
rocky
8cdf741b62 Bugs in long-literal handlin
Move n_dict to n_actions and special case n_const_list.
Generalize build_collection out of 3.7+ and into all Pythons
2022-04-24 17:38:35 -04:00
rocky
cdacc9770e Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-20 08:27:15 -04:00
rocky
aff0cd4baa Merge branch 'master' into python-3.3-to-3.5 2022-04-20 08:20:50 -04:00
rocky
e2ff909603 Split off (semantic) nonterminal print actions 2022-04-19 16:42:48 -04:00
rocky
a3c1943806 Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-17 12:22:47 -04:00
rocky
dd98eb8764 Merge branch 'master' into python-3.3-to-3.5 2022-04-17 12:21:53 -04:00
rocky
3662f3e8c6 Fold in some decompile changes 2022-04-17 12:20:03 -04:00
rocky
ae68f1823d Merge branch 'python-3.3-to-3.5' into python-2.4 2022-04-17 11:35:03 -04:00
rocky
6899f2bd96 Merge branch 'master' into python-3.3-to-3.5 2022-04-17 11:03:00 -04:00
rocky
f8ae674890 Split out comprehension code..
sync with decompile a little better
2022-04-17 10:52:56 -04:00
rocky
81e4169dea Python 2.4 tolerance 2022-04-16 09:13:06 -04:00
rocky
3c2ed93b34 Python 2.4 seems broken 2022-04-15 08:57:55 -04:00
rocky
97f8d91e35 Merge branch 'master' into python-3.3-to-3.5 2022-04-15 08:42:40 -04:00
rocky
04510ac2f8 lambda formatting in f-string
In a formatted string using "lambda',  we should not add "\n".
For example in:
  f'{(lambda x:x)("8")!r}'

Adding a "\n" after "lambda x: x" will give an error message:
  SyntaxError: f-string expression part cannot include a backslash
2022-04-12 16:49:58 -04:00
rocky
a1fe069c8c Handle walrus operator
Or rather set precedence on call_stmt and expr_stmt

Adjust pytest test_single_compile so it works now
2022-04-12 05:21:13 -04:00
rocky
9735453283 Small changes
test code for pysource and bump lastest testing Python versions
2022-04-01 03:11:59 -04:00
rocky
6e00a3bdbb Merge branch 'python-3.3-to-3.5' into python-2.4 2022-03-31 06:44:20 -04:00
rocky
f89a3e8fa1 Remove some 3.6ish type annotations 2022-03-04 05:16:12 -05:00
rocky
2efe2b5b47 WIP 2022-03-04 05:07:31 -05:00
rocky
76f7bae0a6 Merge branch 'master' into python-3.3-to-3.5 2022-03-04 04:48:50 -05:00
rocky
d366248b47 Some small variable-name changes 2022-03-04 04:47:38 -05:00