mirror of
https://github.com/achlipala/frap.git
synced 2024-11-10 00:07:51 +00:00
Fix goofy notation
This commit is contained in:
parent
ce0d9e8262
commit
64516f784a
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ Infix "*" := Times : arith_scope.
|
||||||
Delimit Scope arith_scope with arith.
|
Delimit Scope arith_scope with arith.
|
||||||
Notation "x <- e" := (Assign x e%arith) (at level 75).
|
Notation "x <- e" := (Assign x e%arith) (at level 75).
|
||||||
Infix ";;" := Sequence (at level 76). (* This one changed slightly, to avoid parsing clashes. *)
|
Infix ";;" := Sequence (at level 76). (* This one changed slightly, to avoid parsing clashes. *)
|
||||||
Notation "'when' e 'loop' then_ 'else' else_ 'done'" := (If e%arith then_ else_) (at level 75, e at level 0).
|
Notation "'when' e 'then' then_ 'else' else_ 'done'" := (If e%arith then_ else_) (at level 75, e at level 0).
|
||||||
Notation "'while' e 'loop' body 'done'" := (While e%arith body) (at level 75).
|
Notation "'while' e 'loop' body 'done'" := (While e%arith body) (at level 75).
|
||||||
|
|
||||||
(* Here's an adaptation of our factorial example from Chapter 3. *)
|
(* Here's an adaptation of our factorial example from Chapter 3. *)
|
||||||
|
@ -974,7 +974,7 @@ Module Concurrent.
|
||||||
|
|
||||||
Notation "x <- e" := (Assign x e%arith) (at level 75).
|
Notation "x <- e" := (Assign x e%arith) (at level 75).
|
||||||
Infix ";;" := Sequence (at level 76). (* This one changed slightly, to avoid parsing clashes. *)
|
Infix ";;" := Sequence (at level 76). (* This one changed slightly, to avoid parsing clashes. *)
|
||||||
Notation "'when' e 'loop' then_ 'else' else_ 'done'" := (If e%arith then_ else_) (at level 75, e at level 0).
|
Notation "'when' e 'then' then_ 'else' else_ 'done'" := (If e%arith then_ else_) (at level 75, e at level 0).
|
||||||
Notation "'while' e 'loop' body 'done'" := (While e%arith body) (at level 75).
|
Notation "'while' e 'loop' body 'done'" := (While e%arith body) (at level 75).
|
||||||
Infix "||" := Parallel.
|
Infix "||" := Parallel.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue