mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-05-13 03:00:26 -04:00
Allow hex numbers.
This commit is contained in:
@@ -105,5 +105,6 @@ Symbol: String = {
|
||||
|
||||
Number: i64 = {
|
||||
r"-?[0-9][0-9_]*" => i64::from_str(<>).unwrap().into(),
|
||||
r"0x[0-9A-Fa-f][0-9A-Fa-f_]*" => i64::from_str_radix(&<>[2..].replace('_', ""), 16).unwrap().into(),
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user