diff --git a/kmir/k-src/mir-lexer-syntax.md b/kmir/k-src/mir-lexer-syntax.md index f5044fe8d..da463a2d6 100644 --- a/kmir/k-src/mir-lexer-syntax.md +++ b/kmir/k-src/mir-lexer-syntax.md @@ -34,7 +34,7 @@ Primitive types (in literal format) used in MIR. //TODOļ¼š locate the code defines the primitive types in MIR. //Do we need to redefine regular expression? Maybe move to Type File syntax UnsignedLiteral ::= r"[0-9]+_(usize|u8|u16|u32|u64|u128)" [token] - syntax SignedLiteral ::= r"[-]?[0-9]+_(isize|i8|i16|i32|i64|i128)" [token] + syntax SignedLiteral ::= r"-?[0-9]+_(isize|i8|i16|i32|i64|i128)" [token] syntax FloatLiteral ::= r"-?[0-9]+(.[0-9]+)?((E|e)(\\+|-)?[0-9]+)?(f32|f64)" [token] syntax HexLiteral ::= r"0x[0-9a-fA-F]+" [token] syntax StringLiteral ::= r"[\\\"]([^\\\"\\\\\\n]|\\\\[\\\"'nrt0\\\\]|\\\\x[0-7][0-9a-fA-F]|\\\\u\\{[0-9a-fA-F]+\\}|\\\\u[0-9a-fA-F]([0-9a-fA-F]([0-9a-fA-F]([0-9a-fA-F]([0-9a-fA-F][0-9a-fA-F]?)?)?)?)?|\\\\\\n)*[\\\"]" [token, prec(-1)] @@ -63,7 +63,7 @@ Types such as structs, tuples and unions, which has fields (indexed by `VariantI ``` ```k - syntax AllocReferenceToken ::= r"#\\(-*alloc[0-9]+(?:\\+0x[0-9a-fA-F]+)?-*\\)#" [token] + syntax AllocReferenceToken ::= r"#\\(-*alloc[0-9]+(\\+0x[0-9a-fA-F]+)?-*\\)#" [token] syntax DoubleHexDigitNoIntLetter ::= r"[a-fA-F][0-9a-fA-F]" [token] syntax DoubleHexDigitNoIntDigit ::= r"[0-9][a-fA-F]" [token] ``` diff --git a/kmir/pyproject.toml b/kmir/pyproject.toml index 2c2cbd011..1cf43803f 100644 --- a/kmir/pyproject.toml +++ b/kmir/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "kmir" -version = "0.2.52" +version = "0.2.53" description = "" authors = [ "Runtime Verification, Inc. ", diff --git a/kmir/src/kmir/__init__.py b/kmir/src/kmir/__init__.py index 9c0fc9d36..d7edaaa3f 100644 --- a/kmir/src/kmir/__init__.py +++ b/kmir/src/kmir/__init__.py @@ -2,4 +2,4 @@ from .kmir import KMIR -VERSION: Final = '0.2.52' +VERSION: Final = '0.2.53' diff --git a/package/version b/package/version index d0caa6cf5..0258f95ef 100644 --- a/package/version +++ b/package/version @@ -1 +1 @@ -0.2.52 +0.2.53