Commit Graph

34 Commits

Author SHA1 Message Date
Daniel Watkins
862442b635 Simplify the conversion of missing slice parts to None 2018-08-03 20:55:18 -04:00
Daniel Watkins
73b2d07578 Support parsing steps in slice syntax 2018-08-03 20:55:18 -04:00
Daniel Watkins
43fafa5102 Enable semi-colon separated statements
For example, `cargo run -- -c 'print("a"); print("b")'`.
2018-07-31 16:33:27 -04:00
Windel Bouwman
099595bf17 Merge pull request #15 from wulmer/feature/windows-and-mac-eol-characters
Add support for Windows/Mac EOL characters in lexer
2018-07-29 17:15:49 +02:00
Adam Kelly
e79ec8e4cb Suppress unused variable warnings. 2018-07-29 09:06:56 +01:00
Adam Kelly
12a3ff5e7e Deal with warnings for Ellipsis and Rarrow 2018-07-29 09:06:56 +01:00
Ulmer Wolfgang (CR/AEE3)
d168156375 Add support for Windows/Mac EOL characters in lexer 2018-07-28 22:00:46 +01:00
Adam Kelly
976c1f4340 Update lexer and parser to support lambdas. 2018-07-28 10:09:08 +01:00
Adam Kelly
a6785c8d72 Add support for a escape sequence in string literals to lexer.
(\u, \x and octals not supported.)
2018-07-27 10:43:48 +01:00
Windel Bouwman
e7cc6b1786 Add else clause to for loop 2018-07-24 22:30:45 +02:00
Windel Bouwman
bbc19305f8 Reduce dependencies of vm and parser crates 2018-07-18 10:22:00 +02:00
Windel Bouwman
8b6e0fe0b6 Add more arithmatic 2018-07-16 21:09:05 +02:00
Windel Bouwman
e47e5f3d05 Add else statement 2018-07-15 16:54:29 +02:00
Windel Bouwman
b653b96a46 Autoformatting 2018-07-15 13:16:00 +02:00
Windel Bouwman
8a0d8ab624 Add += and -= 2018-07-15 10:58:20 +02:00
Windel Bouwman
36bef81ceb Change eval compile to statement 2018-07-14 16:03:50 +02:00
Windel Bouwman
5783133565 Add eval and exec compile modes 2018-07-14 15:17:19 +02:00
Windel Bouwman
e6493ec996 Add new_instance method 2018-07-14 12:14:16 +02:00
Windel Bouwman
5187c2e974 Simple importing scheme working 2018-07-12 20:38:53 +02:00
Windel Bouwman
65c3ff54b0 New idea for object system 2018-07-11 17:33:10 +02:00
Windel Bouwman
2354102795 Add interactive shell 2018-07-09 22:06:49 +02:00
Windel Bouwman
7d20869dc0 Fix return value from function 2018-07-08 21:03:25 +02:00
Windel Bouwman
ed4557fec5 Added cool script to test snippets in both implementations 2018-07-08 19:57:53 +02:00
Windel Bouwman
62cb3e2474 Add slice object 2018-07-08 12:38:55 +02:00
Windel Bouwman
0a43d244f4 Add pipfile to install requirements for test snippets 2018-07-07 17:54:56 +02:00
Windel Bouwman
8470254f07 Move last compiler / vm pieces out of parser crate 2018-07-07 17:44:30 +02:00
Windel Bouwman
4be77bcbc7 Remove unused compiler namespace in parser 2018-07-07 17:36:21 +02:00
Windel Bouwman
0111a8356d Move bytecode definitions to top level crate 2018-07-03 19:55:15 +02:00
Windel Bouwman
7a719190f3 Move compiler function to top level and try to emit code 2018-07-03 19:38:09 +02:00
Shing Lyu
2d0e4efecf Make the main program parse from parser and run with vm 2018-06-11 22:29:09 +02:00
Shing Lyu
11557e98eb Ignoring rust target folders 2018-06-11 21:20:48 +02:00
Shing Lyu
57aca407bc Fixed the test vm for a missed comparison operator 2018-06-07 21:46:31 +02:00
Shing Lyu
277124fc1f Make the parser and vm two separate crates 2018-06-07 00:09:09 +02:00
Shing Lyu
93b6ce31c0 Moved rspython to parser folder and created top level project 2018-06-06 23:11:24 +02:00