16 lines
359 B
Systemverilog
16 lines
359 B
Systemverilog
imports io:mzhang:ableGo:ConcreteSyntax as cst;
|
|
|
|
function main
|
|
IOVal<Integer> ::= args::[String] ioIn::IOToken
|
|
{
|
|
local fileName :: String = head(args);
|
|
|
|
local result :: IO<Integer> = do {
|
|
text :: String <- readFile(fileName);
|
|
return 123;
|
|
};
|
|
|
|
return evalIO(result, ioIn);
|
|
}
|
|
|
|
parser AbleGoParser :: cst:Root { io:mzhang:ableGo:ConcreteSyntax; }
|