Commit Graph

  • b83c641057 Better documentation for leafs/nodes. Dave Halter 2017-09-04 20:19:00 +02:00
  • 97d9aeafb7 Bettter NoeOrLeaf docstrings. Dave Halter 2017-09-04 09:48:23 +02:00
  • 7a277c7302 Move to python 3.6 intersphinx. Dave Halter 2017-09-03 23:32:43 +02:00
  • 5993765e0a Better documentation of issues. Dave Halter 2017-09-03 23:01:34 +02:00
  • 435d310c2b More general overhaul of the documentation. Dave Halter 2017-09-03 22:19:48 +02:00
  • 8aa280342a Rework the parse documentation. Dave Halter 2017-09-03 22:08:28 +02:00
  • 73c61bca4a More docstrings. Dave Halter 2017-09-03 18:36:03 +02:00
  • 60ed141d80 A few documentation improvements. Dave Halter 2017-09-03 14:02:53 +02:00
  • 091e72562c Bump version. Dave Halter 2017-09-03 01:14:35 +02:00
  • fc6202ffb3 Rename _get_definition to get_definition. v0.0.4 Dave Halter 2017-09-03 00:42:06 +02:00
  • 0e201810fa Remove the old get_definition function. Dave Halter 2017-09-03 00:41:39 +02:00
  • 7a9739c5d6 Add an option to the new get_definition. Dave Halter 2017-09-02 23:45:50 +02:00
  • 1bf9ca94bb A small docstring. Dave Halter 2017-09-02 22:41:15 +02:00
  • a4d28d2eda Rework is_definition. Dave Halter 2017-09-02 17:25:39 +02:00
  • 36ddbaddf4 Remove a note about not parsing f-strings. Dave Halter 2017-09-02 14:13:47 +02:00
  • b944fb9145 Fix a test around rb/br string literals. Dave Halter 2017-09-02 14:09:15 +02:00
  • 7a85409da7 Get rid of one more isinstance. Dave Halter 2017-09-02 13:59:21 +02:00
  • e79c0755eb iter_return_stmts should also return return statements without a value. Dave Halter 2017-09-02 12:32:32 +02:00
  • 9ab5937a3c Fix yield scanning. Dave Halter 2017-09-01 18:03:47 +02:00
  • d3e58955a9 iter_yield_expr should not work correctly. Dave Halter 2017-09-01 09:34:01 +02:00
  • a21ec2c0ad Better yield/yield from support. Dave Halter 2017-09-01 01:06:07 +02:00
  • 910a660c6f Fix some todos. Dave Halter 2017-09-01 00:35:19 +02:00
  • 68fa70b959 future_import_names is not public, at the moment. Dave Halter 2017-09-01 00:25:32 +02:00
  • fa0bf4951c Fix string prefixes for Python2. Dave Halter 2017-09-01 00:20:24 +02:00
  • ba2c0ad41a Bump version. Dave Halter 2017-08-31 22:44:15 +02:00
  • 4b32408001 Finally get a release out with this script. Dave Halter 2017-08-31 22:41:28 +02:00
  • 5c3304f7c2 Move start symbols a bit. v0.0.3 Dave Halter 2017-08-31 19:39:27 +02:00
  • 92f2761398 Moved deploy.sh to deploy-master.sh Dave Halter 2017-08-31 19:32:05 +02:00
  • 6a6da7ca58 Modify the deployment script a bit more. Dave Halter 2017-08-31 19:27:23 +02:00
  • 676828fd4f Change deploy script to better handle tags that already exist and move to a separate folder to avoid deploying files that make no sense. Dave Halter 2017-08-31 09:00:47 +02:00
  • 9ae1b000de Small whitespace change. Dave Halter 2017-08-30 16:10:36 +02:00
  • 20f3fd101a Fix py3.3 and remove a print. Dave Halter 2017-08-28 21:47:00 +02:00
  • 45c434799f Rename indent -> column. Dave Halter 2017-08-28 21:34:17 +02:00
  • 826a6b4453 Add some notes to CONTRIBUTING.md. Dave Halter 2017-08-28 18:34:35 +02:00
  • db1079a7fe Actual support fo backticks. Dave Halter 2017-08-28 18:32:48 +02:00
  • b921e280b0 Some last fstring fixes. Dave Halter 2017-08-28 18:10:30 +02:00
  • cba82773d4 Small test refactoring, because not all fstrings errors from parso match the CPython equivalents. Dave Halter 2017-08-26 19:18:16 +02:00
  • 66606403c7 Most fstrings issues should be fixed now. Dave Halter 2017-08-26 19:15:09 +02:00
  • 5b7a01ba62 Finally add all fstring errors except the nested invalid syntax stuff that occurs in nested Python. Dave Halter 2017-08-26 12:16:06 +02:00
  • 68cc383d02 Do proper error recover for fstrings and fix another issue there. Dave Halter 2017-08-26 12:02:10 +02:00
  • 1893f77e15 Add issue "f-string: expecting }". Dave Halter 2017-08-26 11:53:59 +02:00
  • 296ecc6728 Add 'f-string: expressions nested too deeply' issue. Dave Halter 2017-08-26 11:10:04 +02:00
  • 7d4aa755a5 Add conversion issues. Dave Halter 2017-08-26 03:13:59 +02:00
  • 8a448303d1 Fix an issue that created an endless loop. Dave Halter 2017-08-26 03:08:10 +02:00
  • ede8a2139f Add some first f-string issues. Dave Halter 2017-08-25 22:09:58 +02:00
  • 609ab1ffa9 Hack around the fact that the tokenizers are not really integrated with parsers. Dave Halter 2017-08-25 21:21:57 +02:00
  • 09b05422a6 Fix an issue with continue error detection. Dave Halter 2017-08-25 21:02:56 +02:00
  • f3db064d7d Try to correctly calculate start positions. Dave Halter 2017-08-25 20:58:28 +02:00
  • 8bc54f5a29 Fix all the issues with f-string escapes. Dave Halter 2017-08-25 10:22:41 +02:00
  • 204e750dd5 Add more f-string tests. Dave Halter 2017-08-25 09:47:24 +02:00
  • 0c0a4b5a5d Add some fstring tests. Dave Halter 2017-08-24 01:39:28 +02:00
  • 3c3e7f5317 Make some parsing work. Dave Halter 2017-08-24 01:39:17 +02:00
  • 033e880408 Add fstrings to the grammar. Dave Halter 2017-08-24 00:01:42 +02:00
  • 2ba107872d A first iteration of an fstring tokenizer/grammar. Dave Halter 2017-08-23 23:49:11 +02:00
  • 929593701a Remove opmap from pgen. Dave Halter 2017-08-22 08:45:10 +02:00
  • d7f2051f8a Remove some use cases from token.tok_name in pgen. Dave Halter 2017-08-21 20:33:29 +02:00
  • 6630542847 Make a method in the tokenizer private. Dave Halter 2017-08-21 18:31:10 +02:00
  • c0d3734e81 Remove exact_type from PythonToken, because the support for this differentiation of exact_type and type was never really there. Dave Halter 2017-08-21 18:30:14 +02:00
  • 88c3c0567a Rename TokenInfo to PythonToken. Dave Halter 2017-08-21 09:33:41 +02:00
  • 1912551296 Move some star_expr checking around. Dave Halter 2017-08-19 12:59:49 +02:00
  • d5d7518ca4 Allow multiple values to be used when registering rules. Dave Halter 2017-08-19 12:51:10 +02:00
  • 820e94e03a Move the error node checking to a rule. Dave Halter 2017-08-19 12:43:47 +02:00
  • 5ff33c3736 Refactor the error signatures. Dave Halter 2017-08-19 10:54:29 +02:00
  • 5916b676de Move the TryStmtRule. Dave Halter 2017-08-18 18:53:11 +02:00
  • 30acb69caa Move all of the check_assignment stuff into classes. Dave Halter 2017-08-18 18:47:49 +02:00
  • 84e5adb364 Move the parameter rules. Dave Halter 2017-08-18 18:37:16 +02:00
  • ceb7121dc6 Move the big arglist rule. Dave Halter 2017-08-18 18:32:24 +02:00
  • 8ba7001b44 Protect some classes that don't need to be public. Dave Halter 2017-08-18 18:21:18 +02:00
  • 76578218d9 Move argument and nonlocal rule. Dave Halter 2017-08-18 18:20:37 +02:00
  • 904f293830 Move annassign and starexprs. Dave Halter 2017-08-18 18:15:24 +02:00
  • a53477321b Move some import rule stuff around. Dave Halter 2017-08-17 20:49:21 +02:00
  • e8196c0c06 Move the first node (atom) to rules. Dave Halter 2017-08-17 20:42:32 +02:00
  • 33ad290512 More rules, yay. Dave Halter 2017-08-17 20:39:34 +02:00
  • eb2c0ab93b Move string checks to a rule. Dave Halter 2017-08-17 20:25:23 +02:00
  • 0fd2e169bd More rule moves. Dave Halter 2017-08-17 20:22:32 +02:00
  • 657baabb0b Move continue checks to a rule. Dave Halter 2017-08-17 20:12:23 +02:00
  • f055ba198f Move more stuff and fix tests. Dave Halter 2017-08-17 10:38:45 +02:00
  • 06d7da3f3e Move the first issue to the new rule engine. Dave Halter 2017-08-17 10:25:11 +02:00
  • 8d20f3d469 Finish refactoring rules. Dave Halter 2017-08-17 09:33:46 +02:00
  • e37e2e1ff6 Swich the add_sisue signature around. Dave Halter 2017-08-16 22:44:33 +02:00
  • fc80cebfb8 More normalizer Rule refactoring. Dave Halter 2017-08-16 22:13:11 +02:00
  • 412da07893 Refactor the Rule class a bit. Dave Halter 2017-08-16 18:17:51 +02:00
  • 51f2de28c6 source_to_unicode -> python_bytes_to_unicode. Dave Halter 2017-08-15 20:07:24 +02:00
  • ab027885c7 Refactor splitlines -> split_lines. Dave Halter 2017-08-15 19:54:21 +02:00
  • 476d5fb0d1 Some Python2.7 fixes. Dave Halter 2017-08-15 19:34:47 +02:00
  • 86aa185136 Use source_to_unicode by default with errors='strict'. Dave Halter 2017-08-15 19:27:17 +02:00
  • a305a911f1 Create some examples for fstring fails. Dave Halter 2017-08-14 18:54:28 +02:00
  • 13cc39c3f0 Add pypy to the tests on travis. Dave Halter 2017-08-06 18:25:40 +02:00
  • 2322b3aed3 Don't use pickle in pypy. It's really slow. (Armin Rigo told me a while ago). Dave Halter 2017-08-06 18:08:29 +02:00
  • e2c97e9675 Skip tests in PyPy that don't make sense to test. Dave Halter 2017-08-06 18:04:31 +02:00
  • c23ae8a69b Add the syntax/indentation error list that can be found in CPython (mostly 3.6). Dave Halter 2017-08-06 17:38:17 +02:00
  • 3c961e2b70 Rename .params to .get_params(). Dave Halter 2017-08-06 17:29:29 +02:00
  • 8c3373a0d9 Rename normalizer -> errors. Dave Halter 2017-08-06 17:12:22 +02:00
  • 860fe2cd1e Refactor the initialization of contexts a bit so a varity of nodes can be taken as input. Dave Halter 2017-08-06 16:44:53 +02:00
  • 524f332e7d Small refactoring. Dave Halter 2017-08-06 16:11:31 +02:00
  • 1a30afdd9e Move a few imports out of functions. Dave Halter 2017-08-06 15:34:47 +02:00
  • 90edb2d0cf Move the iter_errors and normalizer methods to grammar.py. Dave Halter 2017-08-06 15:32:50 +02:00
  • 3e39a04bb1 Fix opening contexts at the right position. Dave Halter 2017-08-06 14:39:26 +02:00
  • 31675e74a2 Add a python3.3 grammar, this is just cleaner IMO. Dave Halter 2017-08-06 03:00:14 +02:00
  • 8382f338ca Fix some small issues around expr_stmt. Dave Halter 2017-08-06 02:52:52 +02:00