Commit Graph

234 Commits

Author SHA1 Message Date
Noah
f73ea1cd00 impl fmt::Display for Tok 2019-09-13 11:08:43 +02:00
HyeonGyu Lee (Vazrupe)
0ab46fd2bd Add Positional argument error to LexicalError
Fixes #1046
2019-09-13 01:46:31 +09:00
Windel Bouwman
19112cef49 Require at least finally or except on a try statement. 2019-08-19 09:00:08 +02:00
Windel Bouwman
3ed71308bf Repair try-except-else syntax. Fixes #1300. 2019-08-19 08:37:07 +02:00
Windel Bouwman
d83cfb4cef Merge pull request #1234 from RustPython/short-circuit-evaluation
Improve the situation regarding boolean operations.
2019-08-12 07:30:28 +02:00
Windel Bouwman
36d8147e8e Improve the situation regarding boolean operations. 2019-08-11 20:20:15 +02:00
Windel Bouwman
dbc562c613 Implement clippy hint. 2019-08-11 09:57:40 +02:00
Windel Bouwman
a400f6631c Improve lexing of numbers with underscores. 2019-08-11 09:29:21 +02:00
Windel Bouwman
fc8aba1b68 Merge pull request #1215 from RustPython/syntax-fixes
Add variable annotation syntax.
2019-08-09 11:22:55 +02:00
Windel Bouwman
2fdfcb96a5 Add parser support for async for loop. Add yield expression inside parentheses. 2019-08-07 20:11:27 +02:00
Windel Bouwman
ded9d5ba5b Add variable annotation syntax. Simplify grammar for comprehensions. Add capital J suffix for complex numbers. 2019-08-07 15:31:24 +02:00
Windel Bouwman
de89349d8d Fix import syntax to require at least one imported symbol. Fixes #1211. 2019-08-07 13:00:34 +02:00
Windel Bouwman
6fc7027230 Merge pull request #1199 from RustPython/set-star-expr
Add star expression in set literals.
2019-08-04 19:47:34 +02:00
Windel Bouwman
19dd58cbad Add star expression in set literals. 2019-08-02 20:55:37 +02:00
Windel Bouwman
b2d0729ca8 Fix lexing of 1else. 2019-08-02 19:08:59 +02:00
Windel Bouwman
1024281014 Add support for star expression in tuple. 2019-07-27 13:10:55 +02:00
Windel Bouwman
1fddce461f Implement review comments and improve parsing a bit. 2019-07-25 23:54:31 +02:00
Windel Bouwman
a06bd3ecea Add an example usecase of the parser. 2019-07-24 20:13:30 +02:00
Windel Bouwman
255b744217 Minor tweak on lexer to fix the REPL. 2019-07-21 22:11:37 +02:00
Windel Bouwman
e922a6a952 Fix trailing newline issue #17 2019-07-21 14:00:55 +02:00
Windel Bouwman
8c199ee2f2 Refactor the lexer code to bring some more sanity and reduce function size. 2019-07-21 13:05:10 +02:00
Windel Bouwman
ccd7d8960d Suppress clippy warning. 2019-07-20 21:25:11 +02:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02:00
Windel Bouwman
ff762d7109 Address relative import with 3 dots. Closes #1052. 2019-07-15 21:41:43 +02:00
Windel Bouwman
0741c36bb8 Simplify import AST in line with CPython. 2019-07-15 21:00:28 +02:00
Windel Bouwman
e06de30eb6 Implement more nodes in the ast. Add script to walk over AST of sourcecode. 2019-07-14 21:18:49 +02:00
coolreader18
0893076643 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
Windel Bouwman
18bb56330e Merge pull request #1115 from RustPython/fstring-fix
Improve f-string syntax. Fixes #1099
2019-07-07 19:42:21 +02:00
Aviv Palivoda
e4322f52a9 Merge pull request #1112 from RustPython/parser-error-cleaning
parser error handling improvements.
2019-07-07 20:16:16 +03:00
Windel Bouwman
dbc263cc1b Merge pull request #1114 from mkurnikov/fix-clippy-1.36
Enable clippy in CI
2019-07-07 15:28:43 +02:00
Windel Bouwman
cc24b73031 Set all versions to 0.1.0 2019-07-07 13:04:12 +02:00
Windel Bouwman
7e138eca3b Improve f-string syntax. Fixes #1099 2019-07-07 12:04:43 +02:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Windel Bouwman
97f982530a parser error handling improvements. 2019-07-06 20:18:18 +02:00
Aviv Palivoda
0e74d16498 Pass ParseError location to CompileError 2019-07-06 10:23:32 +03:00
Aviv Palivoda
ef1d5433df Pass more information in user defined parse error 2019-07-05 11:01:49 +03:00
Windel Bouwman
6a58b76ef7 Change authors to team name. 2019-07-01 21:14:07 +02:00
Windel Bouwman
bedbad284e Change underscore into hyphen 2019-07-01 21:05:29 +02:00
Windel Bouwman
f816a50110 Change get_row() into row() 2019-06-30 20:23:01 +02:00
Aviv Palivoda
0d8d2e3beb Calculate import level at parsing 2019-06-29 17:04:31 +03:00
Windel Bouwman
30979d9f27 Merge pull request #1043 from yanganto/feat/unicode-iterals
support unicode literal
2019-06-19 19:13:13 +02:00
Antonio Yang
974dc683e4 support unicode literal
- support unicode literal \x with 2 digits
- support unicode literal \u with 4 digits
- support unicode literal \U with 8 digits
- avoid to parse \x as unicode literal in bytes
2019-06-20 00:30:38 +08:00
Aviv Palivoda
12a3028806 Import all from_list in one __import__ call 2019-06-14 08:27:49 +03:00
Windel Bouwman
aa6b155e1e Merge branch 'master' of https://github.com/RustPython/RustPython into walrus 2019-06-09 11:49:02 +02:00
Windel Bouwman
9d9fcfc034 Removal of walrus operator. 2019-06-08 16:38:15 +02:00
Windel Bouwman
9592e94920 Isolate determination of indentation into seperate method. 2019-06-08 16:23:51 +02:00
Maxim Kurnikov
bc35a64e54 fix most of clippy warnings 2019-06-01 03:19:22 +03:00
Daniel Shaulov
bd89c4e32b Reformat with rustfmt 2019-05-27 22:19:07 +03:00
Daniel Shaulov
b2f17a18ea Add support for marshal with loads and dumps 2019-05-27 22:09:47 +03:00
Windel Bouwman
b8c788197e Add walrus operator to lexer and try to make lexer code cleaner. 2019-05-12 22:35:28 +02:00