Commit graph

28 commits

Author SHA1 Message Date
Noa
a60c7b2fb2 Split derive-impl and derive 2022-12-19 18:48:17 -06:00
Jeong YunWon
8d39d5362b parser::Mode from compile::Mode 2022-08-23 05:08:24 +09:00
Jeong YunWon
a1640e4aa1 new_syntax_error working without full compiler
Fix #4100
2022-08-23 05:08:24 +09:00
Jeong YunWon
4724cc63f7 Move out CompileError to core as generic form 2022-08-23 01:30:00 +09:00
Jeong YunWon
5b50c547d6 Integrate CompileError to compiler-core::BaseError 2022-08-22 23:18:41 +09:00
Jeong YunWon
1192a11d39 integrate CodegenError to compiler-core::Error 2022-08-22 18:43:03 +09:00
Jeong YunWon
9d67b944cf Integrate ParseError to compiler-core::Error 2022-08-22 16:28:08 +09:00
Jeong YunWon
9d6ab72d79 integrate ast::Location into compilre-core::Location 2022-08-22 08:42:20 +09:00
Jeong YunWon
b3095c7451 rustpython-bytecode -> rustpython-compiler-core 2022-08-22 08:42:20 +09:00
Jeong YunWon
03ccd4b9d8 Add source_path to ParseError 2022-08-22 08:42:20 +09:00
Jeong YunWon
cf10e800a6 codegen::{CompileError -> CodegenError} 2022-08-22 08:42:20 +09:00
Jeong YunWon
3690272256 Refactor Mode and partial parser/codegen for eval/exec 2022-08-22 08:42:20 +09:00
Jeong YunWon
9c229ebb99 Refactor symboltables and _ast to use codegen when possible 2022-08-22 08:42:20 +09:00
Jeong YunWon
060d153bb3 reorganize compiler crates 2022-08-22 04:42:42 +09:00
Padraic Fanning
ae122c6478 Replace master with main
Fixes #3067
2021-09-15 17:54:54 -04:00
Noah
a0790d4906 Use ahash in the compiler 2021-01-08 17:00:23 -06:00
Noah
596e338c51 Have a block-based IR for compiling, calculate max stack size 2020-12-21 18:47:58 -06:00
Noah
1575382577 Add flags to the MakeFunction instruction 2020-12-14 14:35:17 -06:00
Noah
ebee651a12 Update compiler to output codeobj.constants, use insta for snapshot testing 2020-10-19 23:55:55 -05:00
Jeong YunWon
f2b696a75b Add mode to ast::parse 2019-10-12 18:12:36 +09:00
coolreader18
70c5c240e7 Address comments 2019-08-07 14:40:16 -05:00
coolreader18
347d6c006a Fix label issue 2019-08-03 23:58:59 -05:00
coolreader18
e9ad1f64ee Make peephole optimizer a stream processor 2019-08-03 22:02:29 -05:00
Windel Bouwman
de2e496e1f Add initial draft of symtable module. 2019-07-16 22:04:38 +02:00
coolreader18
6c03386162 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
Windel Bouwman
134e6b2579 Move bytecode into own crate. 2019-06-30 11:01:40 +02:00
coolreader18
e85f8b18df Add doc comments and individual compile functions 2019-06-12 22:04:59 -05:00
coolreader18
064919348d Split off bytecode compilation into a separate crate 2019-06-12 21:43:43 -05:00