feat: add erg_compiler::Compiler (python module)

This commit is contained in:
Shunsuke Shibayama 2024-02-15 03:09:22 +09:00
parent 163f4c07f3
commit 4466a5a463
6 changed files with 225 additions and 52 deletions

View file

@ -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,