Commit Graph

  • d8d9eb8087 Silence a variety of unused argument warnings Daniel Watkins 2018-08-10 15:51:13 -04:00
  • 20737f77ac Remove duplicated match arm from PyObject::eq Daniel Watkins 2018-08-10 15:49:14 -04:00
  • d8cd5a3361 Enforce zero arguments to locals Daniel Watkins 2018-08-10 12:39:17 -04:00
  • 976a3f7a03 Remove unused VirtualMachine.call function Daniel Watkins 2018-08-10 12:34:01 -04:00
  • aba1daf674 Remove unused import (and rustfmt all imports) in vm.rs Daniel Watkins 2018-08-10 12:32:53 -04:00
  • 47c9a9c66a Remove unused import Daniel Watkins 2018-08-10 10:09:37 -04:00
  • 816038c166 Merge pull request #54 from OddBloke/import Windel Bouwman 2018-08-10 15:40:28 +02:00
  • a7f1830fe7 Merge pull request #50 from OddBloke/triple_quotes Windel Bouwman 2018-08-10 15:36:24 +02:00
  • a7428e3808 Implement complex import handling Daniel Watkins 2018-08-09 10:24:20 -04:00
  • c9738a0cd1 Ensure snippet tests can import other snippets Daniel Watkins 2018-08-09 12:10:59 -04:00
  • 2e165efbb6 Propagate exceptions raised in init. Adam Kelly 2018-08-09 17:26:56 +01:00
  • 3e07540afc Remove unused "use" from objstr Daniel Watkins 2018-08-09 11:19:37 -04:00
  • 24848a99f9 Merge pull request #52 from cthulahoops/classes Daniel Watkins 2018-08-09 10:06:46 -04:00
  • 339189aff4 Remove special Type type. Type is just a class. Adam Kelly 2018-08-09 08:58:36 +01:00
  • aa1207adcf Snippet to test out class definition. Adam Kelly 2018-08-08 08:17:26 +01:00
  • 9df841b38b Set and retrieve attributes on instances. Adam Kelly 2018-08-08 07:58:16 +01:00
  • 13313e44e8 Add support creating instances of objects. Adam Kelly 2018-08-08 07:41:38 +01:00
  • ccfbe6c4ff Ability to define classes. Adam Kelly 2018-08-07 21:28:15 +01:00
  • 402230684f Add support for parsing classes to ast. Adam Kelly 2018-08-05 19:18:57 +01:00
  • 3861fd898e Implement triple-quotes for strings Daniel Watkins 2018-08-08 21:30:34 -04:00
  • dc5563916b Merge pull request #49 from OddBloke/str_seq Windel Bouwman 2018-08-08 21:22:20 +02:00
  • 98883b7266 Move more slice functions in to PySliceableSequence Daniel Watkins 2018-08-07 20:08:53 -04:00
  • d9cd236e71 Unify string and sequence slicing operations Daniel Watkins 2018-08-07 19:09:59 -04:00
  • 4227a7c4dd Refactor string slicing to mirror sequence slicing Daniel Watkins 2018-08-07 18:45:00 -04:00
  • 8c24461f31 Start using objsequence::get_pos for strings Daniel Watkins 2018-08-07 17:49:15 -04:00
  • 87476b003d Generalise objsequence::get_pos Daniel Watkins 2018-08-07 17:48:01 -04:00
  • d47dcdf071 Merge pull request #48 from OddBloke/slice Windel Bouwman 2018-08-08 18:04:27 +02:00
  • 086dc127f2 Handle slice ends greater than sequence length Daniel Watkins 2018-08-07 16:48:58 -04:00
  • 4e0c285741 Use more descriptive variable names in objsequence::get_item Daniel Watkins 2018-08-07 15:45:58 -04:00
  • 225f296018 Refactor objlist and objtuple get_item in to objsequence Daniel Watkins 2018-08-07 15:42:16 -04:00
  • 1a1bd40e2e Add list and tuple as builtin symbol Windel Bouwman 2018-08-08 14:47:54 +02:00
  • ac44f8b8ed Merge pull request #47 from OddBloke/dict Windel Bouwman 2018-08-08 14:28:50 +02:00
  • f338a15d38 Merge pull request #44 from OddBloke/slice Windel Bouwman 2018-08-08 14:25:49 +02:00
  • d1acf5e7db Implement simple dict literals Daniel Watkins 2018-08-07 23:47:19 -04:00
  • 1b259d5d61 Implement 0-size dict literal Daniel Watkins 2018-08-07 23:21:50 -04:00
  • 0c097f011e Merge pull request #45 from OddBloke/dict Daniel Watkins 2018-08-07 21:26:56 -04:00
  • 78447bb4f4 Implement no-arg dict builtin Daniel Watkins 2018-08-07 20:23:58 -04:00
  • 99ccc97907 Implement len() for dicts Daniel Watkins 2018-08-07 20:22:17 -04:00
  • da55a6addb Refactor shared list/tuple functions to objsequence.rs Daniel Watkins 2018-08-06 15:08:45 -04:00
  • 5dad8b2c54 Remove duplicated get_pos function on objtuple Daniel Watkins 2018-08-06 15:03:45 -04:00
  • dbd65071fe Implement stepped slicing for tuples Daniel Watkins 2018-08-05 16:09:06 -04:00
  • a0844f1f39 Refactor list slicing out to separate function Daniel Watkins 2018-08-05 15:58:15 -04:00
  • a40ef57ba4 Merge pull request #41 from OddBloke/function_args Windel Bouwman 2018-08-06 16:48:35 +02:00
  • 45d3d74776 Merge pull request #40 from OddBloke/slice Windel Bouwman 2018-08-06 16:48:04 +02:00
  • 3575b2785c Merge pull request #43 from OddBloke/tuple_comparison Windel Bouwman 2018-08-06 16:46:19 +02:00
  • 19d06c4099 Merge pull request #42 from OddBloke/single_element_tuples Windel Bouwman 2018-08-06 16:45:07 +02:00
  • de70b8b881 Another couple of trivial warning fixes Daniel Watkins 2018-08-05 23:04:18 -04:00
  • cca039b337 Add tuple comparison test to tuple snippet test Daniel Watkins 2018-08-05 16:55:07 -04:00
  • 15d4664477 Enable tuple comparison Daniel Watkins 2018-08-05 16:52:21 -04:00
  • d5ce48535d Format single-element tuple string representations correctly Daniel Watkins 2018-08-05 16:47:44 -04:00
  • 36f6fb2733 Support creation of single-element tuples Daniel Watkins 2018-08-05 16:41:20 -04:00
  • c8a0b04b2d Allow Tests in function arguments (rather than just Expressions) Daniel Watkins 2018-08-05 16:24:07 -04:00
  • 8a0b75d591 Implement (positive) stepped slicing for lists Daniel Watkins 2018-08-05 15:48:08 -04:00
  • 5b17ccb4f4 Merge pull request #36 from RustPython/fix_warnings Daniel Watkins 2018-08-05 15:06:59 -04:00
  • 99de3d6ef6 Fix some unused name warnings Daniel Watkins 2018-08-05 14:58:09 -04:00
  • 117fa24623 Unwrap the PyResult returned by builtin_print Daniel Watkins 2018-08-05 14:53:11 -04:00
  • 5554160981 Reduce builtin_str match to two arms Daniel Watkins 2018-08-05 14:49:43 -04:00
  • 04cff8c968 Remove unused imports (and reorder affected lines) Daniel Watkins 2018-08-05 14:40:28 -04:00
  • 4f13e3db9c Merge pull request #35 from yodalee/fizzbuzz Daniel Watkins 2018-08-05 12:26:07 -04:00
  • 8b4549efbe Add fizzbuzz snippet to tests yodalee 2018-08-05 10:32:25 -04:00
  • cd940f13ba Expand unimplemented message for Rem Daniel Watkins 2018-08-05 10:29:24 -04:00
  • b8608bd513 Fix copy-paste error in str error message Daniel Watkins 2018-08-05 10:25:54 -04:00
  • 5714cf14cf Interpreter - read until empty line after first continuation. Adam Kelly 2018-08-05 10:08:32 +01:00
  • 5da0432dda add builtin_str a temp version yodalee 2018-08-05 16:02:15 +08:00
  • f0f48d82bd rearrange builtin function yodalee 2018-08-05 15:14:41 +08:00
  • 0d9d4c9ea4 add modulo in pyobject, vm yodalee 2018-08-04 17:33:50 +08:00
  • fcf3518f4a Merge pull request #30 from OddBloke/nums_in_funcs Windel Bouwman 2018-08-04 23:01:01 +02:00
  • 7b599d4a8d Merge pull request #31 from OddBloke/basic_range Windel Bouwman 2018-08-04 22:59:22 +02:00
  • f66a330b13 Merge pull request #26 from cthulahoops/interpreter_improvements Windel Bouwman 2018-08-04 22:57:21 +02:00
  • 2a52a15fa6 Restore perf_fib to being tested Daniel Watkins 2018-08-04 16:26:06 -04:00
  • 164b5fe277 Implement naive range function Daniel Watkins 2018-08-04 16:25:07 -04:00
  • cf7005602f Implement new list creation with elements Daniel Watkins 2018-08-04 16:23:21 -04:00
  • 3e56bc1d60 Include numbers in valid identifier characters Daniel Watkins 2018-08-04 15:59:24 -04:00
  • c6ef62ceac Improved interpreter using compile single and with multiline input. Adam Kelly 2018-08-04 20:46:28 +01:00
  • 1333e624f6 Add Single mode to compile. Adam Kelly 2018-08-04 20:45:53 +01:00
  • 0d645bf1a9 Add PrintExpr instruction to vm. Adam Kelly 2018-08-04 20:44:30 +01:00
  • a9afa76438 Test that an empty line parses. Adam Kelly 2018-08-04 10:54:29 +01:00
  • 4bbff56d0e Merge pull request #29 from RustPython/tests Windel Bouwman 2018-08-04 20:26:47 +02:00
  • dc633ef818 Comment or move all currently-failing snippet tests Daniel Watkins 2018-08-04 13:55:23 -04:00
  • a9d6c8db87 Run snippet tests for stable and beta Rusts Daniel Watkins 2018-08-04 13:42:00 -04:00
  • 9e8c5fb960 First attempt to run snippet tests in Travis Daniel Watkins 2018-08-04 10:34:29 -04:00
  • c857d75748 Restore running of benchmarks in test_snippets.py Daniel Watkins 2018-08-04 11:49:16 -04:00
  • 402ca31423 Suppress cargo/jobserver log messages in snippet testing Daniel Watkins 2018-08-04 11:36:22 -04:00
  • 31bdfe2cd7 Move performance snippets to a separate directory Daniel Watkins 2018-08-04 11:31:48 -04:00
  • 9f0360947a Use boolean short circuit in expression logic Windel Bouwman 2018-08-04 18:14:33 +02:00
  • 3ed0b39831 Idea for short circuit logic Windel Bouwman 2018-08-04 17:44:38 +02:00
  • a585d897c8 Return none at end of function Windel Bouwman 2018-08-04 17:02:56 +02:00
  • 131c34a96b Fix build Windel Bouwman 2018-08-04 12:38:40 +02:00
  • 0f4f130d08 Add early sys module Windel Bouwman 2018-08-04 10:59:13 +02:00
  • 908f85b473 Merge pull request #23 from OddBloke/slice Windel Bouwman 2018-08-04 10:10:38 +02:00
  • 3a19053c5b Merge pull request #24 from OddBloke/unimplemented Windel Bouwman 2018-08-04 10:07:11 +02:00
  • 1d08e1bf57 Merge pull request #25 from OddBloke/fix_while_break Windel Bouwman 2018-08-04 10:06:14 +02:00
  • 2d2f999c3a Emit a SetupLoop instruction during while loop compilation Daniel Watkins 2018-08-04 01:24:45 -04:00
  • b8a6662ca8 Negative steps for strings are unimplemented! Daniel Watkins 2018-08-04 00:56:20 -04:00
  • 13e421a979 Add more information to unimplemented! panics Daniel Watkins 2018-08-04 00:53:01 -04:00
  • 46257724e7 Add tests to snippet for stepped string slicing Daniel Watkins 2018-08-04 00:41:31 -04:00
  • 705c1c7dee Implement stepped slicing for strings Daniel Watkins 2018-08-03 20:53:31 -04:00
  • 862442b635 Simplify the conversion of missing slice parts to None Daniel Watkins 2018-08-03 20:34:43 -04:00
  • 73b2d07578 Support parsing steps in slice syntax Daniel Watkins 2018-08-03 20:33:37 -04:00
  • e1ce670d4b Merge pull request #22 from OddBloke/locals_trace Windel Bouwman 2018-08-03 17:23:47 +02:00