Debian Codegraph @

test-suite/output/onlyprinting.v

raw
1 Module A.
2
3 Reserved Notation "x :-) y" (at level 50, only printing).
4
5 Notation "x :-) y" := (plus x y).
6
7 Check 0 + 0.
8
9 End A.
10
11 Module B.
12
13 Notation "x +_a y" := (plus x y) (at level 50) : nat_scope.
14 Check 1 +_a 2.
15 Notation "x +_b y" := (plus x y) (at level 50) : nat_scope.
16 Check 1 +_a 2.
17 Check 1 +_b 2.
18 Notation "x +_c y" := (plus x y) (at level 50, only printing) : nat_scope.
19 Check 1 +_a 2.
20 Check 1 +_b 2.
21 Print Scope nat_scope.
22 Disable Notation "_ +_c _" : nat_scope.
23 Check 1 +_a 2.
24 Disable Notation "x +_b y" : nat_scope.
25 Check 1 +_a 2.
26 Disable Notation "_ +_a _" (only printing) : nat_scope.
27 Check 1 +_a 2.
28 Enable Notation "a +_c b" (only printing) : nat_scope.
29 Check 1 +_a 2.
30
31 End B.