Commit graph

  • 39c095d12c Add Free enum variant to the symbol scope to be able to distuingish between true local and free variables. Windel Bouwman 2019-08-18 12:12:27 +02:00
  • 9b1771b483 Fix clippy warnings. Add proper names to symboltables. Windel Bouwman 2019-08-18 10:03:00 +02:00
  • 99b3532cae Merge pull request #1251 from RustPython/scope-detection Windel Bouwman 2019-08-18 09:14:20 +02:00
  • 866defbcf3 Compile docstrings for modules coolreader18 2019-08-15 22:25:30 -05:00
  • 623472c366 Address feedback, simplify compilation code coolreader18 2019-08-14 09:53:30 -05:00
  • 7aac5b634f Fix weirdness with import submodules coolreader18 2019-08-13 21:28:09 -05:00
  • e0c3755777 Extend AST python module. Add idea for scope detection. Windel Bouwman 2019-08-14 20:43:23 +02:00
  • 48005efef3 Merge pull request #1245 from RustPython/symbol-context Windel Bouwman 2019-08-14 17:47:40 +02:00
  • f4ee74dbd4 Fix errors coolreader18 2019-08-13 23:04:32 -05:00
  • 3b876205e5 Improve symbol table processing. Windel Bouwman 2019-08-13 21:13:16 +02:00
  • 240c3c417c impl std::str::FromStr for compile::Mode coolreader18 2019-08-11 22:15:07 -05:00
  • 11f4dc24dc Change compile::compile() to take a Mode instead of an &Mode coolreader18 2019-08-11 15:16:42 -05:00
  • 6128b2b46e Merge pull request #1232 from corona10/gh-1212 Windel Bouwman 2019-08-12 07:32:02 +02:00
  • da7a5437ba Merge pull request #1234 from RustPython/short-circuit-evaluation Windel Bouwman 2019-08-12 07:30:28 +02:00
  • 5135c696e7 Fix scope_for_name to catch NameError properly Dong-hee Na 2019-08-12 00:32:57 +09:00
  • 4f9f9252e4 Improve the situation regarding boolean operations. Windel Bouwman 2019-08-11 20:20:15 +02:00
  • fde382409c Revert "Fix compilation of nested boolean operations" Noah 2019-08-11 12:29:10 -05:00
  • 5c1bc6756c Fix compilation of nested boolean operations coolreader18 2019-08-09 21:36:42 -05:00
  • dd53fe8f89 Merge pull request #1215 from RustPython/syntax-fixes Windel Bouwman 2019-08-09 11:22:55 +02:00
  • 70c5c240e7 Address comments coolreader18 2019-08-07 14:40:16 -05:00
  • 69b709e2b1 Add parser support for async for loop. Add yield expression inside parentheses. Windel Bouwman 2019-08-07 20:11:27 +02:00
  • b6dd92daf6 Properly fill the __annotations__ dictionary. Windel Bouwman 2019-08-07 16:13:12 +02:00
  • b22698a6f1 Add variable annotation syntax. Simplify grammar for comprehensions. Add capital J suffix for complex numbers. Windel Bouwman 2019-08-07 15:31:24 +02:00
  • 4cb8cc34e4 Add tuple unpacking optimization coolreader18 2019-08-04 01:22:51 -05:00
  • 347d6c006a Fix label issue coolreader18 2019-08-03 23:30:14 -05:00
  • a01853fad5 Add constant optimization test coolreader18 2019-08-03 22:44:36 -05:00
  • e89d6febea Make peephole optimizer a stream processor coolreader18 2019-08-03 22:02:29 -05:00
  • e9ad1f64ee Make peephole optimizer a stream processor coolreader18 2019-08-03 22:02:29 -05:00
  • 8d1da0920d Add basic constant optimization to the compiler coolreader18 2019-08-02 23:53:46 -05:00
  • 7e9b3ddc1f Implement review comments and improve parsing a bit. Windel Bouwman 2019-07-25 23:54:31 +02:00
  • 9f7ef2050e Add location to expressions. Change symboltable to use flags for symbols. Windel Bouwman 2019-07-20 20:44:38 +02:00
  • 9c9eadbd9e Merge pull request #1153 from RustPython/ast-module Windel Bouwman 2019-07-20 09:07:05 +02:00
  • 4dcad05aa0 Extend symtable module. Windel Bouwman 2019-07-19 22:05:35 +02:00
  • eab3b357dd Extend symtable module. Windel Bouwman 2019-07-19 22:05:35 +02:00
  • 91b43d47fb Fix panic on import statement with levels but no module name. Windel Bouwman 2019-07-19 17:31:57 +02:00
  • 5dc63b9e8e Implement suggestion from clippy. Windel Bouwman 2019-07-17 09:36:11 +02:00
  • de2e496e1f Add initial draft of symtable module. Windel Bouwman 2019-07-16 22:04:38 +02:00
  • 69c4d0b240 Simplify import AST in line with CPython. Windel Bouwman 2019-07-15 21:00:28 +02:00
  • 5e468baa16 Add a settings struct for storage of different settings which influence the VM. Windel Bouwman 2019-07-13 12:23:53 +02:00
  • de5e71a9db Add optimize flag to ignore assert statements. Windel Bouwman 2019-07-12 18:41:25 +02:00
  • 6c03386162 Add #![doc(html_logo_url = ...)] to crates coolreader18 2019-07-08 23:57:18 -05:00
  • 02c4064b85 Merge pull request #1112 from RustPython/parser-error-cleaning Aviv Palivoda 2019-07-07 20:16:16 +03:00
  • 5973ef9a41 Merge pull request #1114 from mkurnikov/fix-clippy-1.36 Windel Bouwman 2019-07-07 15:28:43 +02:00
  • b0d270b881 Set all versions to 0.1.0 Windel Bouwman 2019-07-07 13:04:12 +02:00
  • 6e759ac5bc Set all versions to 0.1.0 Windel Bouwman 2019-07-07 13:04:12 +02:00
  • 71cd8cad85 fix remaining clippy warnings Maxim Kurnikov 2019-07-07 06:27:07 +03:00
  • 888cb310e5 parser error handling improvements. Windel Bouwman 2019-07-06 20:18:18 +02:00
  • 9f068a3146 Pass ParseError location to CompileError Aviv Palivoda 2019-07-06 10:23:32 +03:00
  • f4a94903b3 Pass more information in user defined parse error Aviv Palivoda 2019-07-05 11:01:49 +03:00
  • e14ac0ce39 Merge pull request #1096 from RustPython/underscore2hyphen coolreader18 2019-07-03 10:16:03 -05:00
  • 313ffe6d6a Do not pollute stack when if-expression condition evaluated to False Maxim Kurnikov 2019-07-03 16:13:16 +03:00
  • e3ccef2504 Change authors to team name. Windel Bouwman 2019-07-01 21:14:07 +02:00
  • 4396af76fb Change authors to team name. Windel Bouwman 2019-07-01 21:14:07 +02:00
  • dcdd964e0c Change underscore into hyphen Windel Bouwman 2019-07-01 21:05:29 +02:00
  • a8de4044b8 Change underscore into hyphen Windel Bouwman 2019-07-01 21:05:29 +02:00
  • 6f063a402d Change get_row() into row() Windel Bouwman 2019-06-30 20:23:01 +02:00
  • 107442cc06 Make bytecode crate independent of parser crate. Windel Bouwman 2019-06-30 11:42:36 +02:00
  • 57b4d432ef Make bytecode crate independent of parser crate. Windel Bouwman 2019-06-30 11:42:36 +02:00
  • 10957879db Move bytecode into own crate. Windel Bouwman 2019-06-30 11:01:40 +02:00
  • 134e6b2579 Move bytecode into own crate. Windel Bouwman 2019-06-30 11:01:40 +02:00
  • 96e49f195d Calculate import level at parsing Aviv Palivoda 2019-06-29 17:04:31 +03:00
  • a6808efab7 Revert "Make CodeObject.source_path an Option<String>" coolreader18 2019-06-20 12:01:20 -05:00
  • d7b4837e26 Make CodeObject.source_path an Option<String> coolreader18 2019-06-15 13:20:16 -05:00
  • 8e3fdd7b36 Merge branch 'master' into coolreader18/comptime-pycompilation coolreader18 2019-06-16 09:05:34 -05:00
  • 71b3fca2ed Change imp_get_frozen_object coolreader18 2019-06-14 10:47:28 -05:00
  • 048ecf4871 Add py_compile_bytecode! macro coolreader18 2019-06-14 10:42:45 -05:00
  • 3a1dd34987 Improve compiler import Aviv Palivoda 2019-06-14 08:45:30 +03:00
  • a932b729d8 Import all from_list in one __import__ call Aviv Palivoda 2019-06-13 20:41:37 +03:00
  • e85f8b18df Add doc comments and individual compile functions coolreader18 2019-06-12 22:04:59 -05:00
  • f0148f46d0 Split off bytecode compilation into a separate crate coolreader18 2019-06-12 21:43:43 -05:00
  • 064919348d Split off bytecode compilation into a separate crate coolreader18 2019-06-12 21:43:43 -05:00