view compile.rhope @ 139:a68e6828d896

Global stores and transactions are working. Definately leaks memory on retries. Probably a fair number of bugs to work out. However, a basic test program works.
author Mike Pavone <pavone@retrodev.com>
date Fri, 19 Nov 2010 04:04:14 -0500
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>"]
	}
}