view compile.rhope @ 186:ba35ab624ec2

Add support for raw C function output from C backend as well as an option to use Boehm-GC instead of reference counting
author Mike Pavone <pavone@retrodev.com>
date Fri, 07 Oct 2011 00:10:02 -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>"]
	}
}