view compile.rhope @ 185:4580c08fd4e8

Fix an import missed in last commit
author Mike Pavone <pavone@retrodev.com>
date Wed, 27 Jul 2011 21:32:40 -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>"]
	}
}