Mercurial > repos > rhope
view compile.rhope @ 69:d0ce696786cc
Clean up debug print statements a bit. Fix bug that prevented workers that took no inputs from working. Remove workaround in Array for said bug.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 16 Jun 2010 04:36:08 +0000 |
parents | 73e978d590c7 |
children | 0a4682be2db2 |
line wrap: on
line source
Import lex.rhope Import countstring.rhope Import parse.rhope Main[args] { [args]Index[1] { Print[["Parsing "]Append[~]] file <- <String@File[~] ,data <- [file]Get FString[[file]Length] tokens <- Lex[Count String[data]] Pretty Print[Parse[tokens], ""] }{ Print["Usage: rhope compile.rhope <filename>"] } }