Seo Sanghyeon
e76edde38e
Implement IndentationError
2019-10-12 02:24:12 +09:00
Windel Bouwman
82e8811fee
Merge pull request #1499 from HyeockJinKim/issue1498
...
Take only numbers after `.`
2019-10-11 17:39:54 +02:00
Seo Sanghyeon
97069c8605
Update lalrpop to 0.17
2019-10-11 15:50:15 +09:00
HyeockJinKim
5c70631e9e
Take only numbers after .
...
Take only numbers not `_` after `.`
Fixes #1498
2019-10-10 17:24:14 +09:00
Seo Sanghyeon
f2e04c0e2f
Implement TabError
2019-10-05 10:12:02 +09:00
Seo Sanghyeon
3f1009ec2c
Disable a Clippy warning
2019-10-03 20:16:40 +09:00
Seo Sanghyeon
bdb6208f6f
Do not panic in parser
2019-10-03 19:41:12 +09:00
Windel Bouwman
188ff0ea73
Merge pull request #1430 from HyeockJinKim/issue1422
...
Generate SyntaxError at integer starting with 0
2019-09-28 21:08:06 +02:00
HyeockJinKim
c8d0f5c956
Generate SyntaxError at integer starting with 0
...
Generate syntaxError at integer starting with 0,
not zero
Fixes #1422
2019-09-29 01:12:07 +09:00
Vazrupe (HyeonGyu Lee)
21669a023b
Add duplicate keyword argument error
...
Fixes #116
2019-09-26 12:27:57 +09:00
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
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
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