| 1 |
(* Printing all kinds of Ltac generic arguments *) |
| 2 |
|
| 3 |
Tactic Notation "myidtac" string(v) := idtac v. |
| 4 |
Goal True. |
| 5 |
myidtac "foo". |
| 6 |
Abort. |
| 7 |
|
| 8 |
Tactic Notation "myidtac2" ref(c) := idtac c. |
| 9 |
Goal True. |
| 10 |
myidtac2 True. |
| 11 |
Abort. |
| 12 |
|
| 13 |
Tactic Notation "myidtac3" preident(s) := idtac s. |
| 14 |
Goal True. |
| 15 |
myidtac3 foo. |
| 16 |
Abort. |
| 17 |
|
| 18 |
Tactic Notation "myidtac4" int_or_var(n) := idtac n. |
| 19 |
Goal True. |
| 20 |
myidtac4 3. |
| 21 |
Abort. |
| 22 |
|
| 23 |
Tactic Notation "myidtac5" ident(id) := idtac id. |
| 24 |
Goal True. |
| 25 |
myidtac5 foo. |
| 26 |
Abort. |