Allow more variable prefixes

This commit is contained in:
Patrick Lühne 2019-11-05 15:53:32 -06:00
parent 4e3e3689d0
commit acb6c05eec
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 1 additions and 1 deletions

View File

@ -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"),
};