Description
In a .key file, there needs not be a space after a \backslash_keyword. But this should be reported.
Reproducible
always
Steps to reproduce
Load the following example
\rules {
\lemmanospaces {
\schemaVar \termint t;
\find(t+0)
\replacewith(t)
};
}
\problem { 5+0=5 }
It will parse – unexpectedly. You can then also apply the rule "nospaces".
It should not parse
Additional information
The problem is that there is no lexer rule for essentially \[a-z]* in the key lexer which would match againt "\termint" to rule it out.
Perhaps adding that lexer rule would solve the issue.
(I assign this to Alexander @wadoon since he implemented the new KeYParser.)
Description
In a
.keyfile, there needs not be a space after a\backslash_keyword. But this should be reported.Reproducible
always
Steps to reproduce
Load the following example
It will parse – unexpectedly. You can then also apply the rule "nospaces".
It should not parse
Additional information
The problem is that there is no lexer rule for essentially
\[a-z]*in the key lexer which would match againt "\termint" to rule it out.Perhaps adding that lexer rule would solve the issue.
(I assign this to Alexander @wadoon since he implemented the new KeYParser.)