Skip to content

Commit

Permalink
Add comments between/above modules and more
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Jun 7, 2023
1 parent b7a7167 commit e4abd53
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions tests/positive/Format.juvix
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
module Format;
{-- This is Judoc block comment --}
module -- Declaring a top module of name:
Format;

import -- Import a module of name:
Stdlib.Prelude open -- Bring all names into scope but..
hiding -- Hide some names
{-- like this
,; -- don't want , here
-- Bool either
Bool; true; false};

import Stdlib.Prelude open hiding {,};
import Stdlib.Data.Nat.Ord open;

-- Lorem ipsum dolor sit amet, consectetur adipiscing elit
terminating
-- Comment between terminating and type sig
go : Nat → Nat → Nat;
go n s :=
if
(s < n)
(go (sub n 1) s)
(go n (sub s n) + go (sub n 1) s);

module M;
syntax infixr 4 ,;
module {- local module -}
M;
syntax -- syntax in local modules
infixr 4 ,;
axiom , : String → String → String;
end;

Expand Down

0 comments on commit e4abd53

Please sign in to comment.