Created
June 19, 2011 07:20
-
-
Save takahisa/1033860 to your computer and use it in GitHub Desktop.
パーサーテスト用の入力ファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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