mirror of
https://github.com/anoma/juvix.git
synced 2024-11-30 14:13:27 +03:00
34 lines
489 B
Plaintext
34 lines
489 B
Plaintext
{-# unknownPragma: 300 #-}
|
|
module Pragmas;
|
|
|
|
import Stdlib.Prelude open;
|
|
|
|
{-# unknownPragma: 0 #-}
|
|
axiom a : Nat;
|
|
|
|
{-#
|
|
unknownPragma: something
|
|
unroll: 100
|
|
inline: false
|
|
#-}
|
|
f : Nat → Nat
|
|
| x := x;
|
|
|
|
{-# inline: true #-}
|
|
g : Nat → Nat
|
|
| x := suc x;
|
|
|
|
{-
|
|
Multiline highlighting
|
|
-}
|
|
--- Judoc comment 1
|
|
--- Judoc comment 2
|
|
{-# unroll: 0 #-}
|
|
terminating
|
|
h : Nat → Nat
|
|
| x := x + 5;
|
|
|
|
--- Judoc comment
|
|
{-# inline: false, unroll: 10, unknownPragma: tratatata #-}
|
|
main : Nat := 0;
|