mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
feat: add erg_compiler::Compiler
(python module)
This commit is contained in:
parent
163f4c07f3
commit
4466a5a463
6 changed files with 225 additions and 52 deletions
|
@ -653,6 +653,12 @@ impl Default for PythonVersion {
|
|||
}
|
||||
|
||||
impl PythonVersion {
|
||||
pub const V3_07: Self = Self::new(3, Some(7), Some(0));
|
||||
pub const V3_08: Self = Self::new(3, Some(8), Some(0));
|
||||
pub const V3_09: Self = Self::new(3, Some(9), Some(0));
|
||||
pub const V3_10: Self = Self::new(3, Some(10), Some(0));
|
||||
pub const V3_11: Self = Self::new(3, Some(11), Some(0));
|
||||
|
||||
pub const fn new(major: u8, minor: Option<u8>, micro: Option<u8>) -> Self {
|
||||
Self {
|
||||
major,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue