Skip to content

Instantly share code, notes, and snippets.

@takahisa
Created June 19, 2011 07:20
Show Gist options
  • Save takahisa/1033860 to your computer and use it in GitHub Desktop.
Save takahisa/1033860 to your computer and use it in GitHub Desktop.
パーサーテスト用の入力ファイル
module std {
def fib = 1 -> Int
=> 1
  def fib = 2 -> Int
=> 1
def fib = n:Int -> Int
=> fib(n-2) + fib(n-1)
}
module program {
import std
[entry]
def main = () -> void
=> fib 80
def main = (n:Int) -> void
=> fib n
}
# class enrty < modifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment