Mercurial > repos > rhope
view compile.rhope @ 168:d2b941f82d74
Fix type of list constants in inference pass and return type of some Array related workers
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 01 May 2011 18:41:17 -0700 |
parents | 0a4682be2db2 |
children |
line wrap: on
line source
Import lex.rhope Import countstring.rhope Import parse.rhope Main[args] { [args]Index[1] { Print[["Parsing "]Append[~]] file <- [File[~]]Open["r"] data <- String[[file]Read[[file]Length]] tokens <- Lex[Count String[data]] Print[Parse[tokens], ""] }{ Print["Usage: rhope compile.rhope <filename>"] } }