(* The following works: *) Notation"'RISCV' {{ x ; y ; .. ; z }}" := (@cons Instruction x
(@cons Instruction y .. (@cons Instruction z nil) ..))
(format "'RISCV' {{ '[v' '//' x ; '//' y ; '//' .. ; '//' z ']' '//' }}").
(* But if I remove the semicolons, I get Error: Anomaly "Uncaught exception Failure("List.last")." Please report at http://coq.inria.fr/bugs/.
*) (* This should fail as: "The format does not match the notation." *)
Fail Notation"'RISCV' {{ x y .. z }}" := (@cons Instruction x
(@cons Instruction y .. (@cons Instruction z nil) ..))
(format "'RISCV' {{ '[v' '//' x '//' y '//' .. '//' z ']' '//' }}").
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.