Commit graph

  • dc4acdf19e Update itertools Noah 2020-07-21 00:47:22 -05:00
  • 5ca3fc79f4 Try to use loadname local replace loadname free lynskylate 2020-07-18 04:02:42 +08:00
  • f6e25fc0cb Set annotation for function args Yiqun Ling 2020-07-14 17:58:58 +08:00
  • 1125a529e7 CompilerError always contains source_path Jeong YunWon 2020-07-12 21:33:11 +09:00
  • fae42a0533 Add annotation setup lynskylate 2020-07-08 01:06:12 +08:00
  • e1999cb698 Remove needless return lynskylate 2020-07-07 06:11:02 +08:00
  • a3b7a83741 Add annotation setup lynskylate 2020-07-07 06:00:50 +08:00
  • 949c37620e Merge pull request #1964 from TheAnyKey/TheAnyKey/p38_named_expression_completion_step2 Noah 2020-06-28 09:30:23 -05:00
  • 3737af157f Release 0.1.2 Noah 2020-06-23 18:47:08 -05:00
  • 40576c7a84 Release 0.1.2 Noah 2020-06-23 18:47:08 -05:00
  • 26654d7404 Merge branch 'master' into TheAnyKey/p38_named_expression_completion_step2 TheAnyKey 2020-06-22 00:34:00 +02:00
  • 60a787e3e0 fixed scoping issue, commented test with references to original version TheAnyKey 2020-06-21 22:18:43 +00:00
  • 162e5d02ab commented and cleaned up TheAnyKey 2020-06-14 12:06:39 +00:00
  • 71f2603556 completion of error handling for named expressions and scope handling improvements TheAnyKey 2020-06-13 21:16:51 +00:00
  • 94eadd7137 Merge pull request #1951 from TheAnyKey/TheAnyKey/p38_named_expression_completion Noah 2020-06-10 16:36:12 -05:00
  • f7216a144a Fix Rust 1.44 clippy warnings Noah 2020-06-06 15:37:47 -05:00
  • 6708cef2a4 Fix compilation on redox Noah 2020-06-02 15:17:14 -05:00
  • 50c0b99136 fixed scoping issue for nonlocals - now also indirect outer scopes are supported TheAnyKey 2020-06-01 22:47:28 +00:00
  • 097b6a1889 Implement Py38 named expression (PEP 572) (#1934) TheAnyKey 2020-06-01 11:22:15 +02:00
  • 1257331101 Fix unpack_ex related messages Jeong YunWon 2020-05-13 01:48:40 +09:00
  • 3f1b9c6096 Fix SyntaxError visualize order: message first location later Jeong YunWon 2020-05-13 01:46:37 +09:00
  • 0d139f9942 comprehension starred expression compatibility Jeong YunWon 2020-05-13 01:43:09 +09:00
  • a77e0b8587 Distinguish MultipleStarArgs and InvalidStarArgs compile errors Jeong YunWon 2020-05-13 01:42:18 +09:00
  • 3f2b414fcc Merge pull request #1843 from RustPython/coolreader18/clippy-fixes Jeong YunWon 2020-04-27 00:10:01 +09:00
  • a9ea22ec2b Merge pull request #1880 from HyeockJinKim/issue1879 Jeong YunWon 2020-04-26 00:12:26 +09:00
  • e85baf4dfb Remove unused variable HyeockJinKim 2020-04-25 13:59:54 +09:00
  • aba7359b36 Disable the unpack optimization Noah 2020-04-24 15:14:58 -05:00
  • c27abf862f Fix some clippy lints that were 'allow'ed Noah 2020-03-16 20:56:45 -05:00
  • 1e12aa8afe Merge pull request #1834 from RustPython/coolreader18/jsontests Noah 2020-04-04 11:52:04 -05:00
  • 8df7d73211 Fix clippy lints Noah 2020-04-03 12:33:49 -05:00
  • 9ac8969e0d Remove incognito from vm Noah 2020-02-28 21:00:40 -06:00
  • ed09df8223 Make incognito a CodeFlag bit Noah 2020-02-08 23:23:03 -06:00
  • a499fb775a Make from __future__ imports a syntactic construct in the compiler Noah 2020-02-07 21:31:58 +00:00
  • 330fdce246 Add "incognito" compilation Noah 2020-02-05 01:21:42 +00:00
  • 61dc0181e0 Move varargs information into CodeFlags Noah 2020-04-02 09:02:18 -05:00
  • 170719180a Apply review comments Noah 2020-03-13 08:16:27 -05:00
  • 7d6d5ff907 Fix syntax error tests Noah 2020-03-05 00:57:05 -06:00
  • d5b9e6b93a Partially implement async generators coolreader18 2020-01-05 00:17:45 -06:00
  • e9ff68c850 Improve compiler error creation Noah 2020-03-13 21:36:33 -05:00
  • 00f9d2247d Make bytecode::Location Copy Noah 2020-03-13 20:57:44 -05:00
  • 04606e9057 Make Location Copy and remove all location.clone()s Noah 2020-03-13 09:01:10 -05:00
  • 867152880a positional only parameter support Jeong YunWon 2020-03-01 02:22:50 +09:00
  • 04c29f384e &str::to_string -> &str::to_owned for variables Jeong YunWon 2020-02-05 22:03:36 +09:00
  • 7860fc877d &str::to_string -> &str::to_owned for literals Jeong YunWon 2020-02-05 19:15:18 +09:00
  • 9a599e81a4 Fix clippy warning Aviv Palivoda 2019-12-27 10:27:51 +02:00
  • 3827dbfc49 Parse FormattedValue spec in symboltable Aviv Palivoda 2019-12-21 11:27:52 +02:00
  • de7f9efd54 Support expression in f-strings spec Aviv Palivoda 2019-12-13 11:33:19 +02:00
  • 8adb8b5105 Fix clippy warnings Jeong YunWon 2019-12-20 22:39:01 +09:00
  • 23993c2833 implement SyntaxError attributes Jeong YunWon 2019-12-14 22:05:15 +09:00
  • aff1a6d53c Fix caret diagnostics for mutiple lines Aviv Palivoda 2019-11-29 11:32:45 +02:00
  • 28fbdffdc8 Provide caret diagnostics for SyntaxError yanganto 2019-11-21 17:04:32 +08:00
  • a51a3e0e4b Add a CompileContext Noah 2019-11-01 03:31:23 +00:00
  • c39e0baab7 Add async for coolreader18 2019-10-17 23:34:43 -05:00
  • 19f62b97a3 Deduplicate async/normal with compilation code Noah 2019-10-17 11:36:23 -05:00
  • ae825125a5 Add async with, reorganize how with blocks work coolreader18 2019-10-16 22:28:49 -05:00
  • 3638591cde Add coroutines, async/await functionality, and gen.close() coolreader18 2019-10-16 20:07:30 -05:00
  • 47c8f3756b Merge pull request #1580 from seeeturtle/doc-f Aviv Palivoda 2019-11-02 19:18:11 +02:00
  • 30ab196fdc Set docstring of function as None if not declared joshua1b 2019-11-02 23:47:44 +09:00
  • 142a29be4a Fix wrong const optimization for "1.0 / 0.0" case ichyo 2019-10-24 00:26:02 +09:00
  • 0fd098569e Change FunctionOpArg to CodeFlags, stored in CodeObject coolreader18 2019-10-13 22:43:11 -05:00
  • 939b49dc81 Add build compatibility with rustc 1.36.0 since #1318 merged ChJR 2019-10-13 15:53:49 +09:00
  • 31b6e815f6 Merge pull request #1318 from youknowone/ast-module Windel Bouwman 2019-10-12 12:51:26 +02:00
  • 0000903a7d Shut up Clippy Seo Sanghyeon 2019-10-12 18:18:45 +09:00
  • f2b696a75b Add mode to ast::parse Jeong YunWon 2019-08-28 03:39:06 +09:00
  • 407bb9e4cb Implement IndentationError Seo Sanghyeon 2019-10-11 17:33:06 +09:00
  • ed01cd63ee upgrade low-risk deps Chris West (Faux) 2019-10-10 21:07:26 +01:00
  • 2326b114c2 upgrade low-risk deps Chris West (Faux) 2019-10-10 21:07:26 +01:00
  • a1e228d4ee Implement TabError Seo Sanghyeon 2019-10-05 09:19:33 +09:00
  • fe4f8237ad Raise TypeError for duplicate keyword arguments Seo Sanghyeon 2019-10-04 19:29:57 +09:00
  • 1dd57971a9 Optimize BuildMap bytecode emission Seo Sanghyeon 2019-10-03 00:03:08 +09:00
  • 6c88f6af3d Optimize BuildMap bytecode emission Seo Sanghyeon 2019-10-03 00:03:08 +09:00
  • 0c3482e03a Invert the inverted boolean coolreader18 2019-09-28 00:41:37 -05:00
  • fee1b6f2c7 Only overwrite the locals in __build_class__ if it's a class Noah 2019-09-10 11:37:11 -05:00
  • d1ae5a7448 Bump crate versions Noah 2019-09-25 11:37:02 -05:00
  • a29fb0de12 Bump crate versions Noah 2019-09-25 11:37:02 -05:00
  • 18c243854e Fix global declaration error in the function HyeockJinKim 2019-09-18 01:33:31 +09:00
  • bff58fd626 Remove useless_const optimization coolreader18 2019-09-15 18:34:48 -05:00
  • b8726f03df Don't emit None, ReturnValue if the last statement in a function is a return coolreader18 2019-09-14 15:16:02 -05:00
  • e5f6d11a12 Add optimization to remove unused LoadConst operations coolreader18 2019-08-16 20:15:10 -05:00
  • 65c98069db Merge pull request #1367 from j30ng/syntax-err-on-star Noah 2019-09-12 08:48:57 -05:00
  • df4be1f9ce Remove Enum Instruction::Unpack j30ng 2019-09-12 15:55:36 +09:00
  • 3b99c07a1e Format Code with rustfmt j30ng 2019-09-12 04:36:31 +09:00
  • 5ce3f2c056 Return SyntaxError on Invalid Star Expression j30ng 2019-09-12 03:15:03 +09:00
  • c852c5d272 nonlocal generate syntax error HyeockJinKim 2019-09-12 01:01:04 +09:00
  • 5919a1e1ba Don't clone SymbolTables when analyzing coolreader18 2019-09-07 18:11:47 -05:00
  • d7f99dc7b1 Fix class scopes by modifying symboltable coolreader18 2019-09-07 01:29:11 -05:00
  • acce23b79b Fix class vs method scopes coolreader18 2019-09-05 00:27:16 -05:00
  • f98d54f09f Merge pull request #1336 from RustPython/comprehension-scope Windel Bouwman 2019-09-04 15:45:55 +02:00
  • 4ae902f788 Merge pull request #1332 from RustPython/load_global_loading_local Adam 2019-09-02 10:13:19 +01:00
  • f3ecba02b1 Be somewhat less conservative about declaring things global. Adam Kelly 2019-08-31 18:15:56 +01:00
  • 024cf5db04 Add symboltable scope for comprehensions. Add _ast module nodes for comprehensions. Windel Bouwman 2019-09-01 22:31:16 +02:00
  • 9c17d982ff Be extremely conservative about guessing scopes when we don't know. Adam Kelly 2019-08-31 16:39:27 +01:00
  • efecef9d48 Remove duplicated contains_key test Jeong YunWon 2019-08-30 01:59:20 +09:00
  • a02ba6104f Fix scan_expression not to mark sequence as Load Jeong YunWon 2019-08-30 01:53:54 +09:00
  • ca09cc215d Merge pull request #1325 from RustPython/scoping Windel Bouwman 2019-08-30 07:08:49 +02:00
  • a0dcfdd57f Add scope type and other symboltable properties. Windel Bouwman 2019-08-28 16:10:30 +02:00
  • dac20eeb59 Make subscript its own bytecode. Remove pass bytecode. Move complex bytecodes into seperate functions to reduce complexity of dispatch function. Windel Bouwman 2019-08-28 12:06:46 +02:00
  • e0a52c15f6 Make bytecode::Label its own struct Noah 2019-08-27 21:18:09 +00:00
  • e37f117035 Implement execution of finally block. Fixes #1306. Windel Bouwman 2019-08-27 21:16:59 +02:00
  • e8db01a09a Refactor block stack unwinding to enable finally execution. Windel Bouwman 2019-08-27 19:40:00 +02:00