pub fn parse_command(input: &str) -> Result<Command, ParseError>Expand description
Parse ONE command, and require it to be the WHOLE input.
★ THE KERNEL MUST NOT ACCEPT A PREFIX. This used to read one command off the front and discard
the rest without a word, so Repl::execute on a two-block document returned Ok having proved
only the first — and the discarded remainder could be a theorem the kernel would have REFUSED.
5 < 2 by lia is rejected when it stands alone and was accepted by silence when it followed a
true theorem, so concatenation walked straight around the conclusion gate. A document is read
whole, by crate::interface::Repl::execute_document; a single command is read whole here.