Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 1.49 KB

First.md

File metadata and controls

90 lines (68 loc) · 1.49 KB

block comment in top of the file

this is a block comment

-- this is a test of inline comment

module comment

this is a module comment

markdown content

This is a list

  • first
  • second
  • third

This is a link. This is a bold text. This is a inline code. This is a block code:

def hoge : Nat := 0

This is an italic text.

variable (P Q : Prop)

example (hQ : Q) : P → Q := by
  -- test of lean codes
  intro _
  exact hQ

/-- test of doc comment -/
example (h : P) : P ∨ Q := by
  /-
  test of inner block comments
  -/
  apply Or.inl
  exact h

/-- doc comment

/- test of block comment in doc -/
-/
macro "foo" : term => `(0)

inductive MyNat where
  | zero
  | succ (n : MyNat)

-- Here is a sample of converting doc comment to block comment
/- info: MyNat.zero : MyNat -/
#check MyNat.zero

namespace MyNat
  /- ## indent block -/

  /- info: zero.succ : MyNat -/
  #check MyNat.succ MyNat.zero

end MyNat

macro "echo" x:str : command => `(#eval $x)

nested comment

Here is a sample of nested block comment: /- Hi. I am a nested comment! -/

Here is another example of nested block comment:

/-! ### sample -/

/- wao. this is another sample!! -/

/-- this is doc comment in comment block -/
def foo : Nat := 0
-- test for language metadata for code block
echo "Hello, world!"

Uniform Internal Link Syntax