Commit Graph

179 Commits

Author SHA1 Message Date
jgirardet
eb2d0b01ee refactor lex byte 2019-04-18 08:06:06 +02:00
Jimmy Girardet
9c57ae4046 support bytes creation from hex and ascii 2019-04-17 15:28:14 +02:00
ben
1f8181b561 Update formatting to be consistent with rustfmt included in 1.34 2019-04-14 09:40:59 +12:00
Windel Bouwman
58a393f047 Merge pull request #804 from jgirardet/refactore_bytes
refactor bytes
2019-04-11 08:20:01 +02:00
Jimmy Girardet
54c7335f1c SyntaxError for non ascii char 2019-04-10 18:05:28 +02:00
Windel Bouwman
ab3d004c42 Fix syntax for float literals, statements seperated by semicolons and starargs after keyword arguments. 2019-04-05 21:59:20 +02:00
Windel Bouwman
29a137bf0f Drop testlist2. Also add test cases for trailing comma in for statement and tuple addition example. 2019-04-03 22:24:19 +02:00
Windel Bouwman
23f57f757c Improve trailing comma situation 2019-04-03 14:08:12 +02:00
Adrian Wielgosik
2fb3fc92ec Support chained comparisons 2019-04-02 23:22:54 +02:00
Windel Bouwman
69c81730d3 Merge pull request #760 from RustPython/parser-fixes
Add support for trailing comma in function defs. Parser code simplica…
2019-03-31 10:57:51 +02:00
coolreader18
60ad5489f1 Ignore clippy lints in the lalrpop generated file 2019-03-30 22:58:46 -05:00
coolreader18
1b57f07834 Process lalrpop in cargo's target directory 2019-03-30 22:56:37 -05:00
Windel Bouwman
73cd680d8d Add support for trailing comma in function defs. Parser code simplications. 2019-03-28 17:50:41 +01:00
Adrian Wielgosik
40dd75d513 Upgrade lalrpop 2019-03-27 18:55:08 +01:00
Windel Bouwman
ca11e7dea7 Add support for emoji as name. 2019-03-24 20:16:38 +01:00
Windel Bouwman
d0c4fcb2fa Doing what is needed for all our non-latin friends. 2019-03-24 13:14:38 +01:00
coolreader18
e35cc813a8 Rename to Unnamed and Named 2019-03-20 08:59:37 -05:00
coolreader18
b7916cdb53 Fix varargs errors 2019-03-19 22:15:09 -05:00
coolreader18
ab53883f67 Change varargs from Option<Option<_>> to its own enum 2019-03-19 19:53:22 -05:00
Windel Bouwman
0292146a42 Add subscript list in grammar. 2019-03-05 17:28:15 +01:00
Adam
d278fb841c Merge pull request #597 from RustPython/type_hints
Add type annotations to parser.
2019-03-05 14:43:30 +00:00
Ryan Liddle
b7c03b4be5 Merge pull request #601 from RustPython/ellipsis
Add ellipsis syntax.
2019-03-05 18:30:44 +11:00
Windel Bouwman
05929b3d7b Add ellipsis type, test and do rustfmt. 2019-03-05 07:19:00 +01:00
Windel Bouwman
a26401707f Minor lexer simplifications. 2019-03-04 21:25:35 +01:00
Windel Bouwman
e25742f184 Add ellipsis syntax. 2019-03-04 21:09:03 +01:00
Windel Bouwman
f7a22254a6 Add return annotation and fix tests in parser. 2019-03-04 20:29:34 +01:00
Windel Bouwman
6544f60d9b Add type annotations to parser. 2019-03-04 19:24:34 +01:00
coolreader18
c99e843769 Fix a clippy lint I missed 2019-03-01 20:13:50 -06:00
Windel Bouwman
9404c7c657 Merge pull request #548 from rickyhan/new_vm_fns
Move set_item to DictProtocol
2019-02-27 09:40:12 +01:00
Windel Bouwman
28d5acc25c Merge pull request #552 from AaronRocinante/lexer_handle_random_byte
add lexer error
2019-02-27 08:13:19 +01:00
ricky han
ec93c55e6d rustfmt 2019-02-26 18:37:40 -05:00
Aaron
267934bb49 fmt 2019-02-26 12:50:18 -08:00
Aaron
b1088c629c fmt 2019-02-26 00:55:16 -08:00
Aaron
b0bf93e530 add lexer error 2019-02-25 21:13:18 -08:00
Ricky Han
6f85a44f7c cargo fmt 2019-02-25 16:35:19 -05:00
Joey Hain
f050acba73 f-strings: allow ':' and '!' to be used in the expression 2019-02-24 21:13:08 -08:00
Joey Hain
ddc154a1dd f-strings: support conversion flags 2019-02-24 14:37:59 -08:00
Joey Hain
d6e317b185 Move f-string parser into own module and clean up a bit 2019-02-24 13:01:25 -08:00
Joey
7e40b7f648 Compile error message cleanup 2019-02-21 08:27:35 -08:00
Joey
df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
Windel Bouwman
e058179b04 Merge pull request #458 from ZapAnton/2018_edition
Migrated the project to the Rust 2018 edition
2019-02-20 16:44:31 +01:00
Joey Hain
114d9df1d1 Allow attributes to be used as decorators 2019-02-16 19:43:25 -08:00
Joey Hain
134c3b94a5 support format specs in f-strings 2019-02-15 18:18:44 -08:00
Joey Hain
5968c4d922 convert f-string parser to state machine 2019-02-15 18:14:33 -08:00
Joey Hain
fb4d55bd8f Fix f-string edge case and add more tests 2019-02-14 18:46:23 -08:00
ZapAnton
f1654cb890 Migrated the project to the Rust 2018 edition 2019-02-14 12:02:32 +03:00
Joey Hain
bc4e48ae61 Fix tests 2019-02-13 23:32:55 -08:00
Joey Hain
4ca3d3b507 Merge remote-tracking branch 'upstream/master' into fstrings 2019-02-13 23:16:40 -08:00
Joey Hain
a97e05a164 Add missing semicolon to Bytes rule 2019-02-13 23:11:54 -08:00
Joey Hain
7d743de43f fix another edge case 2019-02-13 22:28:16 -08:00