From acb6c05eec577cc6e36e4b17b3831d2318bec72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 5 Nov 2019 15:53:32 -0600 Subject: [PATCH] Allow more variable prefixes --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.rs b/src/parse.rs index f8de31e..c075470 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -174,7 +174,7 @@ fn variable_declaration(i: &str) -> IResult<&str, crate::VariableDeclaration> let domain = match name.chars().next() { Some('X') | Some('Y') | Some('Z') => crate::Domain::Program, - Some('I') | Some('N') | Some('M') => crate::Domain::Integer, + Some('I') | Some('J') | Some('K') | Some('L') | Some('M') | Some('N') => crate::Domain::Integer, Some(other) => panic!("variable “{}” starts with character “{}”, which is not allowed", name, other), None => panic!("unexpected variable name, please report to bug tracker"), };