Coq - IP Notation
I want to create a notation for ip addresses. The following is my notation definition that works fine:
Inductive IP := ip : nat -> nat -> nat -> nat -> IP.
Notation "a . b . c . d" := (ip a b c d) (at level 100).
But when I try to use it,
Definition ex := ( 192 . 168 . 1 . 1 ).
I get the following error:
Syntax error: [constr:operconstr level 200] expected after "." (in [constr:operconstr]).
What do I have to change to fix this error.